Package ptolemy.domains.wireless.kernel
Interface ChannelListener
-
- All Known Subinterfaces:
WirelessChannel
- All Known Implementing Classes:
AtomicWirelessChannel
,BluetoothChannel
,DelayChannel
,ErasureChannel
,LimitedRangeChannel
,LinkVisualizer
,PowerLossChannel
public interface ChannelListener
Interface for channel listeners. If a ChannelListener is added to a channel, then for each transmission, it is notified and given all pertinent information, including the transmission properties, the token transmitted, source port and the destination port.- Since:
- Ptolemy II 5.2
- Version:
- $Id$
- Author:
- Heather Taylor, Elaine Cheong
- See Also:
WirelessChannel
- Pt.AcceptedRating:
- Yellow (celaine)
- Pt.ProposedRating:
- Yellow (celaine)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
channelNotify(RecordToken properties, Token token, WirelessIOPort source, WirelessIOPort destination)
React to a transmission on the channel on which this is listening.
-
-
-
Method Detail
-
channelNotify
void channelNotify(RecordToken properties, Token token, WirelessIOPort source, WirelessIOPort destination)
React to a transmission on the channel on which this is listening. The channel will call this method after a transmission occurs, which means that the transmission properties seen by this method are they same as those seen by the destination.- Parameters:
properties
- The transmission properties after they have been transformed by any registered PropertyTransformers.token
- The token transmitted.source
- The sending port.destination
- The receiving port.
-
-