Beispiel #1
0
 /// <summary>
 /// Constructor of a dataSet from some existing data.
 /// </summary>
 /// <param name="workplace">The workplace.</param>
 /// <param name="taskDictionary">The taskDictionary for the workplace. If this parameter is null, it will be taken from crew.taskDictionary</param>
 /// <param name="crew">The crew.</param>
 /// <param name="scenario">The scenario. If the callBack function scenario.loadPhase is null, one function will be generated to use this.phases as the source of phases</param>
 protected SimulationDataSet(Workplace workplace, TaskDictionary taskDictionary, Scenario scenario, Crew crew)
 {        //Whould be better to make a deep copy of everything when creating the dataSet?
     this.workplace      = workplace;
     this.taskDictionary = taskDictionary ?? (crew == null ? null : crew.TaskDictionary);
     this.scenario       = scenario;
     this.crew           = crew;
     this.assertions     = new List <string>();
 }
 public abstract SimulationDataSet CreateSimulationDataSet(Workplace workplace, TaskDictionary taskDictionary, Scenario scenario, Crew crew);
Beispiel #3
0
 public virtual bool Identical(Workplace other)
 {
     return((other != null) && (this.name == other.name));
 }