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