public class ControlCountMeter extends CountMeter implements ReflectionConstructable2<SimNode,Parameters>
ControlCounter
to count the messages and notify the simulation control.
You can use asInstance() enforced by ReflectionConstructable
to parse
and create objects of type ControlCounter and ControlCountMeter.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BATCH_CALLS |
protected ControlCounter |
controlCounter |
static java.lang.String |
TRANSIENT_CALLS |
count
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
ControlCountMeter(int transientMsgCount,
int batchMsgCount,
SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
static ControlCountMeter |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
protected void |
evaluateMessage(Message msg,
Port port) |
printResults
attachInput, attachInput, monitorGetMessage, monitorIsMessageAvailable, monitorMessageIndication
public static final java.lang.String TRANSIENT_CALLS
public static final java.lang.String BATCH_CALLS
protected ControlCounter controlCounter
public ControlCountMeter(int transientMsgCount, int batchMsgCount, SimNode ownNode)
public static ControlCountMeter createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
protected void evaluateMessage(Message msg, Port port)
evaluateMessage
in class CountMeter