ControlCounter can be used to count any sort of event by calling the method
Count(). Once a certain number of events has been reached, the
simulation control is notified of the end of the current batch or the end of
the transient phase. Using this object, a control of the simulation's batch
duration based on the number of certain events can be achieved.
Alternatively, the batch duration can be timer controlled using the class
The class ControlCountMeter uses the ControlCounter class by counting all
messages passing the port it is attached to. The batch duration can
conveniently be controlled using ControlCountMeter by simply attaching it to
You can use the class ControlCounterParser to parse and create objects of
type ControlCounter and ControlCountMeter.