public class GRReceiver extends Mailbox
Mailbox
Constructor and Description |
---|
GRReceiver()
Construct an empty GRReceiver with no container.
|
GRReceiver(IOPort container)
Construct an empty GRReceiver with the specified container.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasRoom()
Return true, since the new token will override the old one.
|
void |
put(Token token)
Put a token into this receiver.
|
clear, elementList, get, hasRoom, hasToken, hasToken
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString
public GRReceiver()
public GRReceiver(IOPort container) throws IllegalActionException
container
- The port that contains the receiver.IllegalActionException
- If this receiver cannot be
contained by the proposed container.public boolean hasRoom()
public void put(Token token) throws NoRoomException
put
in interface Receiver
put
in class Mailbox
token
- The token to be put into this receiver.NoRoomException
- Not thrown in this base class