edu.cmu.emulator.signal
Class PathBasedChannelModel

java.lang.Object
  extended by edu.cmu.emulator.signal.ChannelModel
      extended by edu.cmu.emulator.signal.PathBasedChannelModel

public class PathBasedChannelModel
extends ChannelModel

Parent of all Path based channel models. This class extends the basic ChannelModel class. This model consists of 'Paths' between the antennas within a channel. It stores information about the number of paths and the characteristics of each path - such as the path delay, etc.


Field Summary
protected  Path[] paths
           
static String TYPE
           
 
Fields inherited from class edu.cmu.emulator.signal.ChannelModel
name
 
Constructor Summary
protected PathBasedChannelModel()
           
  PathBasedChannelModel(Path[] paths)
           
 
Method Summary
 int getNumPaths()
          Returns the number of paths between the source and destination antenna pair inside the channelmodel.
 Path getPath(int index)
          Returns the Path object at a particular index in the Path array maintained by the channel model.
 void init()
           
 void parseSubClass(Channel channel, Element channelModelDef)
          params: <> <>
 
Methods inherited from class edu.cmu.emulator.signal.ChannelModel
getName, getType, isValidChannelModelType, newCMInstance, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paths

protected Path[] paths

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

PathBasedChannelModel

protected PathBasedChannelModel()

PathBasedChannelModel

public PathBasedChannelModel(Path[] paths)
Method Detail

init

public void init()
Specified by:
init in class ChannelModel

parseSubClass

public void parseSubClass(Channel channel,
                          Element channelModelDef)
params: <> <>

Specified by:
parseSubClass in class ChannelModel

getNumPaths

public int getNumPaths()
Returns the number of paths between the source and destination antenna pair inside the channelmodel.

Returns:
Number of paths between antenna pair.

getPath

public Path getPath(int index)
Returns the Path object at a particular index in the Path array maintained by the channel model.

Returns:
An instance of the Path object at the index specified.


Copyright © 2013. All Rights Reserved.