Meters
The base class for meters is the class
Meter, which has only one particular characteristic.
Upon constructor call a system-wide unique ID is allocated to each object. The classes derived
from
Meter either measure at one point or between two points and thus are called
OnePointMeter and
TwoPointMeter, respectively.
- The class
OnePointMeter provides the method
attachInput() which connects a
message filter to a port. Parameters include a reference to a model component as well as
the (local) port name.
- The class
TwoPointMeter provides the method
attachFromPort() and
attachToPort() which connects a message filter between the ports. Parameters include
a reference to a model component as well as the (local) port name.
- The classes
OnePointMeter and
TwoPointMeter define the method
handleGetMessage(). This method gets the message from the message filter and calls
the virtual (and therefore overwritable) method
evaluateMessage().
- The message filters are created from the function
createMessageFilter() which is
defined in
<*>Port<*>PointMeter and which can be overwritten.