next up previous contents index
Next: Coupled DEVS: Coupled Up: Atomic DEVS: Atomic Previous: Displaying State as a   Contents   Index

Collecting Performance Functions

If we want to trace the performance of an atomic DEVS model, we need to set the flag on by using CollectStatistics(true). We can also get the flag's status by calling CollectStatisticsFlag(). The virtual function Get_Statistics_s() is supposed to return a string which represents the status in terms of collecting statistics. Also, the user can override the GetPerformance() function to collect the performance index.

    public void CollectStatistics(bool flag) { m_cs = flag; }
    public bool CollectStatisticsFlag() const { return m_cs; }
    public virtual string Get_Statistics_s() const { return Get_s(); }
    public virtual Dictionary<string, double> GetPerformance() const;
We will see the theoretical background of performance indices and how we collect them using DEVS# in Chapter 4.



MHHwang 2007-05-08