public class ControlTimer extends SimNotifier
ControlTimer is an class which is able to look upon the system
time and calls the
EndOfTransientPhaseEndOfBatchEndOfSimulation
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, endOfTransientPhaseNotifierCREATE_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, registerSimNotifierpublic ControlTimer(double transientPhaseTime,
double batchPhaseTime)
public static ControlTimer createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructablepublic void handleProcessEvent(double eventTime)
public void handleStartSimulation(Simulation sim)
handleStartSimulation in class SimNotifierpublic void handleStartTransientPhase()
handleStartTransientPhase in class SimNotifierpublic void handleStartBatch(int batchNumber)
handleStartBatch in class SimNotifier