edu.cmu.emulator.hw
Class EmuHWConfiguration

java.lang.Object
  extended by edu.cmu.emulator.hw.EmuHWConfiguration

public class EmuHWConfiguration
extends Object

Stores information relating to the hardware setup of the emulator. For example, which boards are connected to which, and the properties of those boards.


Field Summary
protected  DSPHardwareConfiguration dspHWConfig
           
protected  double[][] existingLoss
           
protected  HashMap rfFrontEndDefs
           
protected  HashMap signalConvDefs
           
 
Constructor Summary
EmuHWConfiguration(DSPHardwareConfiguration dspHWConfig, HashMap rfFrontEndDefs, HashMap signalConvDefs)
           
 
Method Summary
protected  void calcExistingLoss()
           
protected  double calcExistingLoss(int source, int dest)
           
 DSPHardwareConfiguration getDSPHWConfig()
           
 double getExistingLoss(int srcPort, int destPort)
           
 int getNumPorts()
           
 void init()
           
static EmuHWConfiguration parse(Element hwDefElement)
           
static EmuHWConfiguration parse(String hwConfigFile)
           
 String toString()
          Produces a String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rfFrontEndDefs

protected HashMap rfFrontEndDefs

signalConvDefs

protected HashMap signalConvDefs

dspHWConfig

protected DSPHardwareConfiguration dspHWConfig

existingLoss

protected double[][] existingLoss
Constructor Detail

EmuHWConfiguration

public EmuHWConfiguration(DSPHardwareConfiguration dspHWConfig,
                          HashMap rfFrontEndDefs,
                          HashMap signalConvDefs)
Method Detail

init

public void init()

toString

public String toString()
Produces a String representation. Implementation is NOT efficient -- should be used for debugging only.

Overrides:
toString in class Object
Returns:
a String value

getDSPHWConfig

public DSPHardwareConfiguration getDSPHWConfig()

calcExistingLoss

protected void calcExistingLoss()

calcExistingLoss

protected double calcExistingLoss(int source,
                                  int dest)

getNumPorts

public int getNumPorts()

getExistingLoss

public double getExistingLoss(int srcPort,
                              int destPort)

parse

public static EmuHWConfiguration parse(String hwConfigFile)

parse

public static EmuHWConfiguration parse(Element hwDefElement)


Copyright © 2013. All Rights Reserved.