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()}"); }
protected override void OnReplicationEnd(ModelElementBase modelElement) { Writer?.WriteLine($"Average queue length,Standard Deviation on queue length"); Writer?.WriteLine($"{queueLengthStatistic.Average()},{queueLengthStatistic.StandardDeviation()}"); }
protected override void OnReplicationEnd(ModelElementBase modelElement) { meanQueueLength.Collect(queueLengthStatistic.Average()); stdQueueLength.Collect(queueLengthStatistic.StandardDeviation()); }