public class WirelessReceiver extends DEReceiver
This receiver overrides the base class to handle transmission properties. This receiver works by bundling the token and its transmission properties into a record token, and then unbundling at the corresponding get() methods. FIXME: properties should be a RecordToken instead of Token. But I couldn't fix this until we can create an empty record token. yang
| Yellow (cxh) |
| Green (cxh) |
_directorVersion, _tokens| Constructor and Description |
|---|
WirelessReceiver()
Construct an empty WirelessReceiver with no container.
|
WirelessReceiver(IOPort container)
Construct an empty WirelessReceiver with the specified container.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
get()
Override the base class to unbundle the token and its properties.
|
Token |
getProperties()
Return the properties token associated with the most recent
call to get(), or null if there was none.
|
void |
put(Token token)
Override the base class to attach an empty properties token.
|
void |
put(Token token,
Token properties)
Put the specified token bundled with the specified properties.
|
clear, elementList, hasRoom, hasRoom, hasToken, hasTokengetArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toStringpublic WirelessReceiver()
public WirelessReceiver(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 DEReceiverNoTokenException - If there are no more tokens. This is
a runtime exception, so it need not be declared explicitly.getProperties(),
Receiver.get()public Token getProperties()
public void put(Token token) throws IllegalActionException
put in interface Receiverput in class DEReceivertoken - The token to put, or null to send no token.IllegalActionException - If cannot get the director or if
the current microstep is zero.DEReceiver.put(ptolemy.data.Token)public void put(Token token, Token properties) throws IllegalActionException
token - The token to put, or null to send no token.properties - The associated properties, or null to not
put any in.IllegalActionException - If cannot get the director or if
the current microstep is zero.