Ejemplo n.º 1
0
        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}");
        }
Ejemplo n.º 2
0
        protected override void OnUpdate(ModelElementBase modelElement)
        {
            WorkStation workStation = (WorkStation)modelElement;

            queueLength.UpdateValue(workStation.Queue.Count);
            queueLengthStatistic.Collect(queueLength.PreviousValue, queueLength.Weight);
        }
Ejemplo n.º 3
0
        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}");
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
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()}");
        }