|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.NamedPropertyObject
byucc.edif.EdifCellInstance
public class EdifCellInstance
Represents a specific instance of an EdifCell object. This object contains a reference to the EdifCell that is instanced and a reference to the parent EdifCell object that instanced this cell.
To Do:
| Field Summary | |
|---|---|
private EdifCell |
_cellType
This EdifCell reference refers to the type of EdifCell that is instanced. |
private EdifCell |
_parent
This EdifCell reference refers to the the parent EdifCell object that instanced the cell. |
| Constructor Summary | |
|---|---|
EdifCellInstance(EdifNameable name)
Constructs an Empty, named EdifCellInstance Object. |
|
EdifCellInstance(EdifNameable name,
EdifCell parent)
Constucts a typeless, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(EdifNameable name,
EdifCell parent,
EdifCell type)
Constructs a typed, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(java.lang.String name)
Constructs an Empty, named EdifCellInstance Object. |
|
EdifCellInstance(java.lang.String name,
EdifCell parent)
Constucts a typeless, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(java.lang.String name,
EdifCell parent,
EdifCell type)
Constructs a typed, named EdifCellInstace Object with the specified parent. |
|
| Method Summary | |
|---|---|
EdifCellInstance |
copy()
|
EdifCellInstance |
copy(EdifCell parent)
Returns a deep copy of this EdifCellInstance using the passed-in EdifCell as the parent. |
java.util.Map |
getAllPortRefs()
This method will determine the parent cell of an EdifCellInstance and search through the nets of this parent cell. |
EdifCell |
getCellType()
Returns the cell that this EdifCellInstance object is referring to. |
EdifNet |
getEdifCellInstanceNet(EdifSingleBitPort esbp)
This method will determine the parent cell of this instance and search through the nets of this parent cell for that net that connects to the EdifSingleBitPort specified as the parameter. |
java.util.Collection |
getHierarchicalPrimitiveList()
Returns a Collection of List objects for each primitive instance within the hierarchy of this cell instance. |
java.util.Map |
getInnerNets()
|
java.util.Map |
getOuterEPRs()
|
java.util.Map |
getOuterNets()
This method will determine the parent cell of an EdifCellInstance and search through the nets of this parent cell. |
EdifCell |
getParent()
Returns the parent cell that is referring to the cell that this EdifCellInstance object is referring to. |
EdifPortRef |
getPortRef(EdifSingleBitPort port)
TODO: Why isn't this method commented? |
java.lang.String |
getType()
Returns the type of this cell as a String. |
boolean |
matchesWithin(java.util.Collection instanceList)
Returns true if the current instance matches within the passed-in collection of EdifCellInstance Objects. |
void |
modifyCellRef(EdifCell newCellRef)
Modify the internal cell reference used by this EdifCellInstance. |
void |
modifyCellRef(EdifCell newCellRef,
boolean check)
Modify the internal cell reference used by this EdifCellInstance. |
(package private) void |
setParent(EdifCell p)
Sets the parent cell that is referring to the cell this EdifCellInstance object is referring to. |
void |
toEdif(EdifPrintWriter epw)
Writes the EDIF representation of this EdifCellInstance object to the EdifPrintWriter passed as a parameter. |
java.lang.String |
toString()
Returns a String representation of the EdifCellInstance object. |
| Methods inherited from class byucc.edif.NamedPropertyObject |
|---|
addProperty, addProperty, copyProperties, equals, equalsProperties, getEdifNameable, getName, getOldName, getProperty, getPropertyList, rename, rename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EdifCell _cellType
private EdifCell _parent
| Constructor Detail |
|---|
public EdifCellInstance(java.lang.String name)
name - The name of this EdifCellInstance Objectpublic EdifCellInstance(EdifNameable name)
name - The Object that holds name information for this
EdifCellInstance Object
public EdifCellInstance(java.lang.String name,
EdifCell parent)
name - The name of this EdifCellInstance Objectparent - The EdifCell Object that contains this
EdifCellInstace
public EdifCellInstance(EdifNameable name,
EdifCell parent)
name - The Object that holds name information for this
EdifCellInstance Objectparent - The EdifCell Object that contains this
EdifCellInstace
public EdifCellInstance(java.lang.String name,
EdifCell parent,
EdifCell type)
name - The name of this EdifCellInstance Objectparent - The EdifCell Object that contains this
EdifCellInstacetype - The type of this EdifCellInstance Object, or the
EdifCell Object that this EdifCellInstance is instancing
public EdifCellInstance(EdifNameable name,
EdifCell parent,
EdifCell type)
name - The Object that holds name information for this
EdifCellInstance Objectparent - The EdifCell Object that contains this
EdifCellInstacetype - The type of this EdifCellInstance Object, or the
EdifCell Object that this EdifCellInstance is instancing| Method Detail |
|---|
public EdifCellInstance copy(EdifCell parent)
parent - The EdifCell that will contain the new
EdifCellInstance
public EdifCellInstance copy()
public java.util.Map getOuterNets()
public java.util.Map getInnerNets()
public java.util.Map getOuterEPRs()
public EdifNet getEdifCellInstanceNet(EdifSingleBitPort esbp)
esbp -
public java.util.Map getAllPortRefs()
public EdifCell getCellType()
public java.util.Collection getHierarchicalPrimitiveList()
public EdifCell getParent()
public EdifPortRef getPortRef(EdifSingleBitPort port)
port -
public java.lang.String getType()
public boolean matchesWithin(java.util.Collection instanceList)
instanceList - This EdifCellInstance Object will be
compared against all the elements in this passed-in Collection
to see if a match exists within the Collectionpublic void modifyCellRef(EdifCell newCellRef)
newCellRef - An EdifCell Object--The cell this
EdifCellInstance object will now refer to
public void modifyCellRef(EdifCell newCellRef,
boolean check)
newCellRef - An EdifCell Object--The cell this
EdifCellInstance object will now refer tocheck - If true, will check to see if the interfaces are
equal, and if it's ok to make the switch. For speed, and if
it's known that the match will succeed, use falsevoid setParent(EdifCell p)
p - An EdifCell Object--The parent referring to the cell
of this EdifCellInstance.public void toEdif(EdifPrintWriter epw)
EdifPrintWriter passed as a parameter.
toEdif in interface EdifOutepw - EdifPrintWriter to which EDIF will be writtenpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||