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