|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.actor.AbstractReceiver
ptolemy.domains.de.kernel.DEReceiver
ptolemy.domains.wireless.kernel.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) |
| Constructor Summary | |
WirelessReceiver()
Construct an empty WirelessReceiver with no container. |
|
WirelessReceiver(ptolemy.actor.IOPort container)
Construct an empty WirelessReceiver with the specified container. |
|
| Method Summary | |
ptolemy.data.Token |
get()
Override the base class to unbundle the token and its properties. |
ptolemy.data.Token |
getProperties()
Return the properties token associated with the most recent call to get(), or null if there was none. |
void |
put(ptolemy.data.Token token)
Override the base class to attach an empty properties token. |
void |
put(ptolemy.data.Token token,
double time)
Override the base class to attach an empty properties token. |
void |
put(ptolemy.data.Token token,
ptolemy.data.Token properties)
Put the specified token bundled with the specified properties. |
| Methods inherited from class ptolemy.domains.de.kernel.DEReceiver |
_triggerEvent, clear, getDirector, hasRoom, hasRoom, hasToken, hasToken, setDelay |
| Methods inherited from class ptolemy.actor.AbstractReceiver |
getArray, getContainer, getCurrentTime, isKnown, putArray, setContainer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WirelessReceiver()
public WirelessReceiver(ptolemy.actor.IOPort container)
throws ptolemy.kernel.util.IllegalActionException
container - The container.
ptolemy.kernel.util.IllegalActionException - If the container does
not accept this receiver.| Method Detail |
public ptolemy.data.Token get()
throws ptolemy.actor.NoTokenException
get in interface ptolemy.actor.Receiverget in class DEReceiverptolemy.actor.NoTokenException - If there are no more tokens. This is
a runtime exception, so it need not be declared explicitly.getProperties(),
Receiver.get()public ptolemy.data.Token getProperties()
public void put(ptolemy.data.Token token,
double time)
throws ptolemy.kernel.util.IllegalActionException
put in class DEReceivertoken - The token to put.time - The time in the future.
ptolemy.kernel.util.IllegalActionException - If there are problems creating
the RecordToken or if the parent class throws it.DEReceiver.put(ptolemy.data.Token, double)public void put(ptolemy.data.Token token)
put in interface ptolemy.actor.Receiverput in class DEReceivertoken - The token to put.DEReceiver.put(ptolemy.data.Token)
public void put(ptolemy.data.Token token,
ptolemy.data.Token properties)
token - The token to put.properties - The associated properties, or null to not
put any in.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||