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, hasTokengetArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toStringpublic 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 Receiverget in class MailboxNoTokenException - If this receiver is empty.public void put(Token token) throws NoRoomException
put in interface Receiverput in class Mailboxtoken - The token to be put into the mailbox, or null to set
the mailbox to empty.NoRoomException - Not thrown in this base class.