public class RegisterReceiver extends Mailbox
Red (beth) |
Red (beth) |
Constructor and Description |
---|
RegisterReceiver()
Construct an empty RegisterReceiver with no container.
|
RegisterReceiver(IOPort container)
Construct an empty RegisterReceiver with the specified container.
|
Modifier and Type | Method and Description |
---|---|
Token |
get()
Get the contained Token.
|
void |
put(Token token)
Put a token into the registerReceiver.
|
clear, elementList, hasRoom, hasRoom, hasToken, hasToken
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString
public RegisterReceiver()
public RegisterReceiver(IOPort container) throws IllegalActionException
container
- The container.IllegalActionException
- If the container does
not accept this receiver.public Token get() throws NoTokenException
get
in interface Receiver
get
in class Mailbox
NoTokenException
- If this receiver is empty.public void put(Token token) throws NoRoomException
put
in interface Receiver
put
in class Mailbox
token
- The token to be put into the mailbox, or null to set
the mailbox to empty.NoRoomException
- Not thrown in this base class.