public bool TryMake(double timeScale) { EndTime = timeScale + utility.GetNextPeopleTime(wave.IsWave); AddPeople(timeScale, utility.GetNextPeopleCount(wave.IsWave)); flow.ToWork(timeScale); statistic.IncIntervalCount(); return(true); }
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); }