public void ReadJobMix(Stream streamIn) { XmlSerializer reader = new XmlSerializer(typeof(JobMix)); this.jobMix = (JobMix)reader.Deserialize(streamIn); this.RelateObjects(this.Parent); streamIn.Close(); }
public void SetState(JobMix jobMixIn, SimulationManager managerIn) { jobMixIn.EstimatedTime = this.estimatedTime; foreach (JobTypeState jobTypeState in this.jobTypes) { jobTypeState.SetState(jobMixIn.JobTypes[jobTypeState.Name], managerIn); } base.SetState(jobMixIn); }
public void GetState(JobMix jobMixIn) { base.GetState(jobMixIn); this.buffered = jobMixIn.Buffered; this.estimatedTime = jobMixIn.EstimatedTime; foreach (JobType jobType in jobMixIn.JobTypes) { JobTypeState jobTypeState = new JobTypeState(); jobTypeState.GetState(jobType); this.jobTypes.Add(jobTypeState); } this.unreleased = jobMixIn.Unreleased; this.wip = jobMixIn.WIP; }