示例#1
0
        public void ReadJobMix(Stream streamIn)
        {
            XmlSerializer reader = new XmlSerializer(typeof(JobMix));

            this.jobMix = (JobMix)reader.Deserialize(streamIn);
            this.RelateObjects(this.Parent);
            streamIn.Close();
        }
示例#2
0
 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);
 }
示例#3
0
 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;
 }