public class ControlCountMeter
extends java.lang.Object
MessageCountMeter and a ControlCounter.
The combination of both instances is used to indicate the end of a
phase/partial phase of the simulation. Whenever a message is encountered, a
counter value is increased. When the counter reaches the configured
threshold, the ControlCounter calls the method
endOfTransientPhase() or endOfBatch(), depending on
the current state of the simulation.
You can use parse(SimNode, Parameters) to parse the parameters and
create objects of type ControlCounter and MessageCountMeter.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BATCH_CALLS |
static java.lang.String |
TRANSIENT_CALLS |
| Constructor and Description |
|---|
ControlCountMeter() |
| Modifier and Type | Method and Description |
|---|---|
static MessageCountMeter |
create(int transientMsgCount,
int batchMsgCount)
Helper method to create something which resembles the
ControlCountMeter, which was included in previous versions of
this library. |
static MessageCountMeter |
parse(SimNode ownNode,
Parameters pars)
use this method to parse the parameters and create a meter and a control
counter
|
public static final java.lang.String TRANSIENT_CALLS
public static final java.lang.String BATCH_CALLS
public static MessageCountMeter create(int transientMsgCount, int batchMsgCount)
ControlCountMeter, which was included in previous versions of
this library. Combines a MessageCountMeter with a
ControlCounter.transientMsgCount - number of messages after which the transient phase endsbatchMsgCount - number of messages after which a batch endspublic static MessageCountMeter parse(SimNode ownNode, Parameters pars)