edu.byu.ece.edif.tools.sterilize.halflatch
Class AbstractProblemPrimitiveMap

java.lang.Object
  extended by edu.byu.ece.edif.tools.sterilize.halflatch.AbstractProblemPrimitiveMap
All Implemented Interfaces:
ProblemPrimitiveMap
Direct Known Subclasses:
XilinxCLBProblemPrimitiveMap, XilinxIOBProblemPrimitiveMap

public abstract class AbstractProblemPrimitiveMap
extends java.lang.Object
implements ProblemPrimitiveMap


Field Summary
protected  java.util.Map<java.lang.String,int[]> _floatingPortDefaultValueMap
          Maps primitive names to the will-be floating port names once it is replaced by its corresponding 'safe primitive'
protected  java.util.Map<java.lang.String,java.lang.String[]> _floatingPortMap
          Maps primitive names to the corresponding 'safe primitive' name
protected  java.util.Map<java.lang.String,java.lang.String> _safePrimitiveMap
          Maps primitive names to the will-be floating port default values (once it is replaced by its corresponding 'safe primitive')
 
Constructor Summary
AbstractProblemPrimitiveMap()
           
 
Method Summary
 int getPrimitiveReplacementFloatingPortDefaultValue(EdifCellInstance primitiveECI, java.lang.String floatingPort)
           
 java.lang.String[] getPrimitiveReplacementFloatingPorts(EdifCellInstance primitiveECI)
           
 java.lang.String getPrimitiveReplacementType(EdifCellInstance primitiveECI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_floatingPortMap

protected java.util.Map<java.lang.String,java.lang.String[]> _floatingPortMap
Maps primitive names to the corresponding 'safe primitive' name


_floatingPortDefaultValueMap

protected java.util.Map<java.lang.String,int[]> _floatingPortDefaultValueMap
Maps primitive names to the will-be floating port names once it is replaced by its corresponding 'safe primitive'


_safePrimitiveMap

protected java.util.Map<java.lang.String,java.lang.String> _safePrimitiveMap
Maps primitive names to the will-be floating port default values (once it is replaced by its corresponding 'safe primitive')

Constructor Detail

AbstractProblemPrimitiveMap

public AbstractProblemPrimitiveMap()
Method Detail

getPrimitiveReplacementType

public java.lang.String getPrimitiveReplacementType(EdifCellInstance primitiveECI)
Specified by:
getPrimitiveReplacementType in interface ProblemPrimitiveMap

getPrimitiveReplacementFloatingPorts

public java.lang.String[] getPrimitiveReplacementFloatingPorts(EdifCellInstance primitiveECI)
Specified by:
getPrimitiveReplacementFloatingPorts in interface ProblemPrimitiveMap

getPrimitiveReplacementFloatingPortDefaultValue

public int getPrimitiveReplacementFloatingPortDefaultValue(EdifCellInstance primitiveECI,
                                                           java.lang.String floatingPort)
Specified by:
getPrimitiveReplacementFloatingPortDefaultValue in interface ProblemPrimitiveMap