Package ptolemy.domains.sequence.kernel
Class RegisterReceiver
- java.lang.Object
-
- ptolemy.actor.AbstractReceiver
-
- ptolemy.actor.Mailbox
-
- ptolemy.domains.sequence.kernel.RegisterReceiver
-
-
Constructor Summary
Constructors Constructor Description RegisterReceiver()Construct an empty RegisterReceiver with no container.RegisterReceiver(IOPort container)Construct an empty RegisterReceiver with the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tokenget()Get the contained Token.voidput(Token token)Put a token into the registerReceiver.-
Methods inherited from class ptolemy.actor.Mailbox
clear, elementList, hasRoom, hasRoom, hasToken, hasToken
-
Methods inherited from class ptolemy.actor.AbstractReceiver
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString
-
-
-
-
Constructor Detail
-
RegisterReceiver
public RegisterReceiver()
Construct an empty RegisterReceiver with no container.
-
RegisterReceiver
public RegisterReceiver(IOPort container) throws IllegalActionException
Construct an empty RegisterReceiver with the specified container.- Parameters:
container- The container.- Throws:
IllegalActionException- If the container does not accept this receiver.
-
-
Method Detail
-
get
public Token get() throws NoTokenException
Get the contained Token. If there is none, throw an exception.- Specified by:
getin interfaceReceiver- Overrides:
getin classMailbox- Returns:
- The token contained by this receiver.
- Throws:
NoTokenException- If this receiver is empty.
-
put
public void put(Token token) throws NoRoomException
Put a token into the registerReceiver.- Specified by:
putin interfaceReceiver- Overrides:
putin classMailbox- Parameters:
token- The token to be put into the mailbox, or null to set the mailbox to empty.- Throws:
NoRoomException- Not thrown in this base class.
-
-