コード例 #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}");
        }
コード例 #2
0
        protected override void OnUpdate(ModelElementBase modelElement)
        {
            WorkStation workStation = (WorkStation)modelElement;

            queueLength.UpdateValue(workStation.Queue.Count);
            queueLengthStatistic.Collect(queueLength.PreviousValue, queueLength.Weight);
        }
コード例 #3
0
ファイル: DispatcherObserver.cs プロジェクト: JelleAdan/CSSL
        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}");
        }
コード例 #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);
        }
コード例 #5
0
ファイル: ServerPoolObserver.cs プロジェクト: nitman118/CSSL
        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()}");
        }