public class ControlTimer extends SimNotifier
ControlTimer
is an class which is able to look upon the system
time and calls the
EndOfTransientPhase
EndOfBatch
EndOfSimulation
member functions of the SimNotifier
to indicate that the desired
times of the transient and batch phase or the desired number of batches are
reached.
The Constructor needs
ReflectionConstructable
to parse
and create objects of type ControlTimer
.endOfBatchNotifier, endOfTransientPhaseNotifier
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
ControlTimer(double transientPhaseTime,
double batchPhaseTime) |
Modifier and Type | Method and Description |
---|---|
static ControlTimer |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
void |
handleProcessEvent(double eventTime) |
void |
handleStartBatch(int batchNumber) |
void |
handleStartSimulation(Simulation sim) |
void |
handleStartTransientPhase() |
deregisterSimNotifier, endOfBatch, endOfTransientPhase, registerSimNotifier
public ControlTimer(double transientPhaseTime, double batchPhaseTime)
public static ControlTimer createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
public void handleProcessEvent(double eventTime)
public void handleStartSimulation(Simulation sim)
handleStartSimulation
in class SimNotifier
public void handleStartTransientPhase()
handleStartTransientPhase
in class SimNotifier
public void handleStartBatch(int batchNumber)
handleStartBatch
in class SimNotifier