|
|||||||||
| 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.
| 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)
Construct an Empty, named EdifCellInstance Object. |
|
EdifCellInstance(EdifNameable name,
EdifCell parent)
Construct a typeless, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(EdifNameable name,
EdifCell parent,
EdifCell type)
Construct a typed, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(java.lang.String name)
Construct an Empty, named EdifCellInstance Object. |
|
EdifCellInstance(java.lang.String name,
EdifCell parent)
Construct a typeless, named EdifCellInstace Object with the specified parent. |
|
EdifCellInstance(java.lang.String name,
EdifCell parent,
EdifCell type)
Construct a typed, named EdifCellInstace Object with the specified parent. |
|
| Method Summary | |
|---|---|
EdifCellInstance |
copy(EdifCell parent)
Return a deep copy of this EdifCellInstance using the passed-in EdifCell as the parent. |
java.util.Collection<EdifPortRef> |
getAllEPRs()
This method will determine the parent cell of an EdifCellInstance and search through the nets of this parent cell. |
EdifCell |
getCellType()
Return 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()
Return a Collection with a List object for each primitive instance within the hierarchy of this cell instance. |
java.util.Map |
getInnerNets()
|
java.util.Collection<EdifPortRef> |
getInputEPRs()
This method will determine the parent cell of an EdifCellInstance and search through the nets of this parent cell. |
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. |
java.util.Collection<EdifPortRef> |
getOutputEPRs()
This method will determine the parent cell of an EdifCellInstance and search through the nets of this parent cell. |
EdifCell |
getParent()
Return the parent cell that is referring to the cell that this EdifCellInstance object is referring to. |
EdifPortRef |
getPortRef(EdifSingleBitPort port)
|
java.lang.String |
getType()
Return the type of this cell as a String. |
boolean |
matchesWithin(java.util.Collection instanceList)
Return 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()
Return a String representation of the EdifCellInstance object. |
| Methods inherited from class byucc.edif.NamedPropertyObject |
|---|
addProperty, addProperty, addPropertyList, copyProperties, equals, equalsProperties, getEdifNameable, getName, getOldName, getProperty, getPropertyList, rename, 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)
throws InvalidEdifNameException
name - The name of this EdifCellInstance Object
InvalidEdifNameExceptionpublic EdifCellInstance(EdifNameable name)
name - The Object that holds name information for this
EdifCellInstance Object
public EdifCellInstance(java.lang.String name,
EdifCell parent)
throws InvalidEdifNameException
name - The name of this EdifCellInstance Objectparent - The EdifCell Object that contains this
EdifCellInstance
InvalidEdifNameException
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)
throws InvalidEdifNameException
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
InvalidEdifNameException
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 java.util.Collection<EdifPortRef> getAllEPRs()
public EdifCell getCellType()
public EdifNet getEdifCellInstanceNet(EdifSingleBitPort esbp)
esbp -
public java.util.Collection getHierarchicalPrimitiveList()
public java.util.Map getInnerNets()
public java.util.Collection<EdifPortRef> getInputEPRs()
public java.util.Map getOuterEPRs()
public java.util.Map getOuterNets()
public java.util.Collection<EdifPortRef> getOutputEPRs()
public EdifCell getParent()
public EdifPortRef getPortRef(EdifSingleBitPort port)
port - An EdifSingleBitPort on the EdifCellInstance to which the
desired EdifPortRef makes reference.
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.
TODO: It would be nice to remove this method. Is there a way
we can make the parent atomic and disallow changing at runtime?
If not, we need to comment why here as part of the method.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 | ||||||||