edu.cmu.emulator.dsp
Class PathBasedDSPConfiguration

java.lang.Object
  extended by edu.cmu.emulator.dsp.DSPConfiguration
      extended by edu.cmu.emulator.dsp.PathBasedDSPConfiguration
All Implemented Interfaces:
Comparator

public class PathBasedDSPConfiguration
extends DSPConfiguration


Field Summary
protected static Element channelDefault_sys
           
protected static HashMap channelDefMap
           
protected static int[][] correctPathNum
           
protected static String DEFAULT_CHANNEL_DEF_NAME
           
protected static String DEFAULT_CHANNEL_DEF_NAME_MULT
           
protected static Logger log
           
protected  int maxMFBits
           
protected  int maxShift
           
protected  int[] pathControlMask
           
static String TYPE
           
 
Fields inherited from class edu.cmu.emulator.dsp.DSPConfiguration
channels, DEFAULT_IP, ipAddress, numChannels, unsortedChannels
 
Constructor Summary
PathBasedDSPConfiguration(Channel[] channels, int maxMFBits, int maxShift, String ipAddress)
           
 
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 edu.cmu.emulator.dsp.DSPConfiguration
assignEmuPathIndices, compare, getChannel, getHashString, getIPAddress, getNumChannels, getUnsortedChannel, initializeDSPConfiguration, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

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
Constructor Detail

PathBasedDSPConfiguration

public PathBasedDSPConfiguration(Channel[] channels,
                                 int maxMFBits,
                                 int maxShift,
                                 String ipAddress)
Method Detail

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.