|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.AbstractReceiver
ptolemy.domains.de.kernel.DEReceiver
ptolemy.domains.wireless.kernel.WirelessReceiver
public class WirelessReceiver
A receiver for use in the wireless domain.
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) |
Field Summary | |
---|---|
private Token |
_dummy
|
private Token |
_properties
|
Fields inherited from class ptolemy.domains.de.kernel.DEReceiver |
---|
_directorVersion, _tokens |
Constructor Summary | |
---|---|
WirelessReceiver()
Construct an empty WirelessReceiver with no container. |
|
WirelessReceiver(IOPort container)
Construct an empty WirelessReceiver with the specified container. |
Method Summary | |
---|---|
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. |
Methods inherited from class ptolemy.domains.de.kernel.DEReceiver |
---|
clear, elementList, hasRoom, hasRoom, hasToken, hasToken |
Methods inherited from class ptolemy.actor.AbstractReceiver |
---|
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Token _dummy
private Token _properties
Constructor Detail |
---|
public WirelessReceiver()
public WirelessReceiver(IOPort container) throws IllegalActionException
container
- The container.
IllegalActionException
- If the container does
not accept this receiver.Method Detail |
---|
public Token get() throws NoTokenException
get
in interface Receiver
get
in class DEReceiver
NoTokenException
- 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)
put
in interface Receiver
put
in class DEReceiver
token
- The token to put, or null to send no token.DEReceiver.put(ptolemy.data.Token)
public void put(Token token, Token properties)
token
- The token to put, or null to send no token.properties
- The associated properties, or null to not
put any in.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |