edu.cmu.emulator.hw
Class EmuHWConfiguration
java.lang.Object
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.
rfFrontEndDefs
protected HashMap rfFrontEndDefs
signalConvDefs
protected HashMap signalConvDefs
dspHWConfig
protected DSPHardwareConfiguration dspHWConfig
existingLoss
protected double[][] existingLoss
EmuHWConfiguration
public EmuHWConfiguration(DSPHardwareConfiguration dspHWConfig,
HashMap rfFrontEndDefs,
HashMap signalConvDefs)
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.