protected override void OnUpdate(ModelElementBase modelElement) { WorkCenter workCenter = (WorkCenter)modelElement; queueLength.UpdateValue(workCenter.TotalQueueLength); QueueLengthStatistic.Collect(queueLength.PreviousValue, queueLength.Weight); Writer?.WriteLine($"{workCenter.GetTime},{queueLength.Value}"); }
protected override void OnUpdate(ModelElementBase modelElement) { WorkStation workStation = (WorkStation)modelElement; queueLength.UpdateValue(workStation.Queue.Count); queueLengthStatistic.Collect(queueLength.PreviousValue, queueLength.Weight); }
protected override void OnUpdate(ModelElementBase modelElement) { Dispatcher dispatcher = (Dispatcher)modelElement; queueLength.UpdateValue(dispatcher.QueueLength); queueLengthStatistic.Collect(queueLength.Value, queueLength.Weight); Writer?.WriteLine($"{dispatcher.GetTime},{queueLength.Value}"); }
protected override void OnUpdate(ModelElementBase modelElement) { WorkCenter workCenter = (WorkCenter)modelElement; queueLength.UpdateValue(workCenter.TotalQueueLength); queueLengthStatistic.Collect(queueLength.PreviousValue, queueLength.Weight); Writer.Write(workCenter.GetTime + "\t" + workCenter.GetWallClockTime + "\t" + queueLength.Value); }
protected override void OnUpdate(ModelElementBase modelElement) { ServerPool serverPool = (ServerPool)modelElement; nrOfJobs.UpdateValue(serverPool.JobCount); nrOfJobsStatistic.Collect(nrOfJobs.Value, nrOfJobs.Weight); Writer.WriteLine($"{serverPool.GetTime}',{nrOfJobsStatistic.Average()},{nrOfJobsStatistic.StandardDeviation()}"); }