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
ControlTimerParser
to parse and create
objects of type ControlTimer
.endOfBatchNotifier, endOfTransientPhaseNotifier
Constructor and Description |
---|
ControlTimer(double transientPhaseTime,
double batchPhaseTime) |
Modifier and Type | Method and Description |
---|---|
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 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