edu.cmu.emulator.dsp
Class PathBasedDSPConfiguration
java.lang.Object
edu.cmu.emulator.dsp.DSPConfiguration
edu.cmu.emulator.dsp.PathBasedDSPConfiguration
- All Implemented Interfaces:
- Comparator
public class PathBasedDSPConfiguration
- extends DSPConfiguration
Method Summary |
int |
activePortListToMask(int[] activePorts)
|
protected static void |
checkPort(int portID,
EmuHWConfiguration emuHWConfig)
|
protected static Channel |
createDefaultChannel(int sPortIndex,
int dPortIndex,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
|
protected static Channel |
createDefaultMultChannel(int sPortIndex,
int dPortIndex,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
|
static int |
findIDfromName(String IDDef)
|
int |
getMaxMFBits()
|
int |
getMaxShift()
|
int |
getPathControlMask(int pathNum)
|
int |
getPathControlMaskLength()
|
protected static Channel |
parseChannel(Element channelDefElement,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
|
protected static Channel |
parseChannel(Element channelDefElement,
int srcPortID,
int destPortID,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
|
static HashMap |
parseChannelDefs(Element dspConfigElement)
|
protected static Channel |
parseChannelFromDef(Element channelElement,
String channelDefName,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
|
static PathBasedDSPConfiguration |
parseSubClass(Element dspConfigElement,
EmuHWConfiguration emuHWConfig,
Element channelDefElementDefault,
String[] nodesUNames)
|
void |
updatePathControlMask(int portA,
int portB,
int status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxMFBits
protected int maxMFBits
maxShift
protected int maxShift
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
channelDefMap
protected static HashMap channelDefMap
DEFAULT_CHANNEL_DEF_NAME
protected static final String DEFAULT_CHANNEL_DEF_NAME
- See Also:
- Constant Field Values
DEFAULT_CHANNEL_DEF_NAME_MULT
protected static final String DEFAULT_CHANNEL_DEF_NAME_MULT
- See Also:
- Constant Field Values
channelDefault_sys
protected static Element channelDefault_sys
pathControlMask
protected int[] pathControlMask
correctPathNum
protected static int[][] correctPathNum
log
protected static Logger log
PathBasedDSPConfiguration
public PathBasedDSPConfiguration(Channel[] channels,
int maxMFBits,
int maxShift,
String ipAddress)
getMaxMFBits
public int getMaxMFBits()
getMaxShift
public int getMaxShift()
checkPort
protected static void checkPort(int portID,
EmuHWConfiguration emuHWConfig)
parseChannel
protected static Channel parseChannel(Element channelDefElement,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
parseChannel
protected static Channel parseChannel(Element channelDefElement,
int srcPortID,
int destPortID,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
createDefaultChannel
protected static Channel createDefaultChannel(int sPortIndex,
int dPortIndex,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
createDefaultMultChannel
protected static Channel createDefaultMultChannel(int sPortIndex,
int dPortIndex,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
parseChannelFromDef
protected static Channel parseChannelFromDef(Element channelElement,
String channelDefName,
boolean[][] channelDefined,
EmuHWConfiguration emuHWConfig)
parseSubClass
public static PathBasedDSPConfiguration parseSubClass(Element dspConfigElement,
EmuHWConfiguration emuHWConfig,
Element channelDefElementDefault,
String[] nodesUNames)
parseChannelDefs
public static HashMap parseChannelDefs(Element dspConfigElement)
throws DeserializationException
- Throws:
DeserializationException
activePortListToMask
public int activePortListToMask(int[] activePorts)
updatePathControlMask
public void updatePathControlMask(int portA,
int portB,
int status)
getPathControlMask
public int getPathControlMask(int pathNum)
getPathControlMaskLength
public int getPathControlMaskLength()
findIDfromName
public static int findIDfromName(String IDDef)
Copyright © 2013. All Rights Reserved.