Atomic in
Atomic.cs file. Atomic is an abstract class
that is derived from Devs.
public abstract class Atomic: Devs
{
public TimeUnit TimeUnit { get; }
public Atomic(string name, TimeUnit ): base(name) {...}
...
An instance of Atomic class has its own time unit.
TimeUnit is defined in TimeUnit.cs file as an
enumerate type:
public enum TimeUnit { MilliSec, Sec, Min, Hour, Day }.
Therefore, the lifetime of a state
,
is interpreted
in
TimeUnit inside DEVS#. However, to handle
all different schedules in different time units of all atomic
models used in a simulation run, time conversions are internally
done in DEVS#. As a result, TimeLast, TimeNext,
TimeElapsed, TimeRemaining, and TimeAdvance
will be interpreted in second internally.