log sets the logging option
which generates the log file DEVS#_log.txt. After the
log command, DEVS# shows the current log settings and
waits for the user input as follows.
current log setting: on, p00
options: {on,off}, {+,-}{pqt} nc >
The user options are on or off or
{+,-}{pqt} or nc. Their meanings are:
{on, off} is the main log options. Use on
for turning log on or off for turning log off. If the mode
is on, three independent options are selectable.
p is for logging performance indices
at the end of a simulation run.
q is for logging the
total state of the model at the end of a simulation run.
t is for logging every single discrete event transition.
on, it is shown as pqt. If p is
on, q and t are off, the display is
shown as p00, etc.
{+,-}{pqt} can be
interpreted that + stands for setting the following options
on, while - stands for turning the following options
off. For example +qt means to set q and
t on, while -p means to set p off.
nc no change.
SRTEngine has a public data field of logger which is
an instance of Logger class. The corresponding APIS of
Logger class are
public bool Logger::OnFlag {get; set; },
public bool Logger::TransitionFlag {get; set; },
public bool Logger::PerformanceFlag {get; set; },
public bool Logger::TotalStateFlag {get; set; }.