| Modifier and Type | Field and Description |
|---|---|
protected PortMonitor |
fromPortHandler |
protected PortMonitor |
toPortHandler |
| Modifier | Constructor and Description |
|---|---|
protected |
TwoPointMeter() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachFromPort(Entity entity,
java.lang.String localPortName)
Attaches this meter to the specified port.
|
void |
attachFromPort(Port port)
Attaches this meter to the specified port.
|
void |
attachToPort(Entity entity,
java.lang.String localPortName)
Attaches this meter to the specified port.
|
void |
attachToPort(Port port)
Attaches this meter to the specified port.
|
protected abstract void |
evaluateMessageFromPort(Message msg,
Port port) |
protected abstract void |
evaluateMessageToPort(Message msg,
Port port) |
protected final PortMonitor toPortHandler
protected final PortMonitor fromPortHandler
public void attachFromPort(Entity entity, java.lang.String localPortName)
The port is assumed to be a from-port. See the derived meter class for a definition of from-port and to-port.
entity - entity which owns the portlocalPortName - port namepublic void attachFromPort(Port port)
The port is assumed to be a from-port. See the derived meter class for a definition of from-port and to-port.
port - the port to connect topublic void attachToPort(Entity entity, java.lang.String localPortName)
The port is assumed to be a to-port. See the derived meter class for a definition of from-port and to-port.
entity - entity which owns the portlocalPortName - port namepublic void attachToPort(Port port)
The port is assumed to be a to-port. See the derived meter class for a definition of from-port and to-port.
port - the port to connect to