edu.cmu.emulator.signal
Class Channel

java.lang.Object
  extended by edu.cmu.emulator.signal.Channel

public class Channel
extends Object

This class implements the logical equivalent of the physical channel which exists between two antennas - a source and a destination antenna.

Each channel also contains a channel model object which emulates the behavior of the channel.


Field Summary
protected  ChannelModel channelModel
           
protected  Antenna dest
           
protected  int destAntennaIndex
           
protected  Antenna src
           
protected  int srcAntennaIndex
           
 
Constructor Summary
Channel(Antenna src, Antenna dest)
          Constructor.
Channel(int srcAntennaIndex, int destAntennaIndex)
           
 
Method Summary
 ChannelModel getChannelModel()
          Returns the ChannelModel object corresponding to this channel.
 Antenna getDest()
          Returns the destination antenna of this channel object.
 Antenna getSource()
          Returns the source antenna of this channel object.
 void init()
           
 void setAntennas(SignalEnvironment sigEnv)
           
 void setChannelModel(ChannelModel channelModel)
          Sets the Channel's ChannelModel to the object instance that is passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcAntennaIndex

protected int srcAntennaIndex

destAntennaIndex

protected int destAntennaIndex

src

protected Antenna src

dest

protected Antenna dest

channelModel

protected ChannelModel channelModel
Constructor Detail

Channel

public Channel(int srcAntennaIndex,
               int destAntennaIndex)

Channel

public Channel(Antenna src,
               Antenna dest)
Constructor.

Parameters:
src - The source antenna.
dest - The destination antenna.
Method Detail

init

public void init()

setAntennas

public void setAntennas(SignalEnvironment sigEnv)

getSource

public Antenna getSource()
Returns the source antenna of this channel object.

Returns:
The source Antenna object.

getDest

public Antenna getDest()
Returns the destination antenna of this channel object.

Returns:
The destinaion Antenna object.

setChannelModel

public void setChannelModel(ChannelModel channelModel)
Sets the Channel's ChannelModel to the object instance that is passed.

Parameters:
channelModel - An instance of an implementation of the ChannelModel class.

getChannelModel

public ChannelModel getChannelModel()
Returns the ChannelModel object corresponding to this channel. The object returned will be an instance of an implementation of the ChannelModel class.

Returns:
The ChannelModel corresponding to this channel.


Copyright © 2013. All Rights Reserved.