Example #1
0
 public bool TryMake(double timeScale)
 {
     EndTime = timeScale + utility.GetNextPeopleTime(wave.IsWave);
     AddPeople(timeScale, utility.GetNextPeopleCount(wave.IsWave));
     flow.ToWork(timeScale);
     statistic.IncIntervalCount();
     return(true);
 }
Example #2
0
 public void Init(Wave wave, FlowAlterantive flow, SimulationUtility utility, Statistic statistic)
 {
     this.utility   = utility;
     this.wave      = wave;
     this.flow      = flow;
     this.statistic = statistic;
     EndTime        = utility.GetNextPeopleTime(false);
 }