package eu.dnetlib.contract.runner;

import eu.dnetlib.contract.ctx.GlobalContractContext;

/**
 * Single contract runner result.
 * @author mhorst
 *
 */
public class ContractTestRunnerContext {

	/**
	 * Contract spring configuration file location.
	 */
	private String springConfigLocation;
	
	/**
	 * Global contract context containing all evaluation results for single contract test.
	 */
	private GlobalContractContext globalContractContext;
	
	/**
	 * Default contstructor.
	 * @param springConfigLocation
	 */
	public ContractTestRunnerContext(String springConfigLocation) {
		this.springConfigLocation = springConfigLocation;
	}
	
	/**
	 * Returns contract spring configuration file location.
	 * @return contract spring configuration file location
	 */
	public String getSpringConfigLocation() {
		return springConfigLocation;
	}

	/**
	 * Sets contract spring configuration file location.
	 * @param springConfigLocation
	 */
	public void setSpringConfigLocation(String springConfigLocation) {
		this.springConfigLocation = springConfigLocation;
	}

	/**
	 * Returns global contract context.
	 * @return global contract context
	 */
	public GlobalContractContext getGlobalContractContext() {
		return globalContractContext;
	}

	/**
	 * Sets global contract context.
	 * @param globalContractContext
	 */
	public void setGlobalContractContext(GlobalContractContext globalContractContext) {
		this.globalContractContext = globalContractContext;
	}

}
