AtomicWirelessChannel

Parent Previous Next

Interfaces and Buses / Wireless_Sensor / Channels / AtomicWirelessChannel
Block Name: AtomicWirelessChannel


The base class for communication channels in the wireless domain.

To use this class, place it in a wireless model that contains a wireless director and wireless actors (actors whose ports are instances of WirelessIOPort). Then set the outsideChannel parameter of those ports to match the name of this channel. The model can also itself contain ports that are instances of WirelessIOPort, in which case their insideChannel parameter should contain the name of this channel if they should use this channel.

In this base class, transmission on a channel reaches all ports at the same level of the hierarchy that are instances of WirelessIOPort and that specify that they use this channel. These ports include those contained by entities that have the container as this channel and that have their outsideChannel parameter set to the name of this channel. They also include those ports whose containers are the same as the container of this channel and whose insideChannel parameter matches this channel name.

Derived classes will typically limit the range of the transmission, using for example location information from the ports. They may also introduce random losses or corruption of data. To do this, derived classes can override the _isInRange() protected method, or the transmit() public method.


 

Field Detail

defaultProperties

public VisualSim.data.expr.Parameter defaultProperties


_receiversInRangeCacheValid

protected boolean _receiversInRangeCacheValid



Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications