public class MetroIIPtidesReceiver extends DEReceiver
This class is identical to PtidesReceiver except Ptides directors are mapped to MetroIIPtidesDirector.
Modifier and Type | Class and Description |
---|---|
static class |
MetroIIPtidesReceiver.Event
An Event is an aggregation consisting of a Token, a time stamp and
destination Receiver.
|
static class |
MetroIIPtidesReceiver.TagComparator
Compare two events according to - time stamp - value did not find a way
to compare Tokens, therefore am comparing DoubleTokens and IntTokens
here.
|
_directorVersion, _tokens
Constructor and Description |
---|
MetroIIPtidesReceiver()
Construct an empty queue with no container.
|
MetroIIPtidesReceiver(IOPort container)
Construct an empty queue with the specified IOPort container.
|
Modifier and Type | Method and Description |
---|---|
void |
put(Token token)
Wrap the token in an DETokenEvent and post the trigger event to the
director.
|
void |
putToReceiver(Token token)
Actually put the token into this receiver.
|
void |
remove(Token token)
Remove the token from the list of stored tokens.
|
clear, elementList, get, hasRoom, hasRoom, hasToken, hasToken
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString
public MetroIIPtidesReceiver()
public MetroIIPtidesReceiver(IOPort container) throws IllegalActionException
container
- The IOPort that contains this receiver.IllegalActionException
- If this receiver cannot be contained by the proposed
container.public void put(Token token) throws IllegalActionException
put
in interface Receiver
put
in class DEReceiver
token
- The token to be put, or null to not put a token.IllegalActionException
public void putToReceiver(Token token)
token
- The token to be put to this receiver, or null to put no token.public void remove(Token token)
token
- The token to be removed.