|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.EdifPortRef
public class EdifPortRef
Represents a port reference within an EdifEnvironment. This object contains a reference to an EdifPort, an EdifNet, and an EdifCellInstance. The EdifPort object is a port that is contained by an EdifCell object. The EdifNet object is the parent or "owner" of this object (i.e. this object is contained in the EdifNet list of EdifPortRef objects). The EdifCellInstance object refers to the cell instance that owns the port. If this reference is null, the referenced port is a top-level port found in the EdifCell that owns the EdifNet object.
To Do:
EdifPortRef,
EdifNet,
Serialized Form| Field Summary | |
|---|---|
private EdifCellInstance |
_cellInstance
The EdifCellInstance Object that this EdifPortRef Object connects to. |
private EdifNet |
_net
The EdifNet Object that connects to this EdifPortRef Object. |
private EdifSingleBitPort |
_refSingleBitPort
The EdifPort Object this EdifPortRef Object refers to. |
| Constructor Summary | |
|---|---|
EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance)
Deprecated. Please use EdifPortRef(EdifNet,EdifSingleBitPort,EdifCellInstance) instead |
|
EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance,
int busMember)
Deprecated. Please use EdifPortRef(EdifNet,EdifSingleBitPort,EdifCellInstance) instead |
|
EdifPortRef(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance instance)
A constructor for the new EdifSingleBitPort. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Copies reference of refPort (DOES NOT COPY PORT!) |
boolean |
equalsPortRefWithin(java.util.Collection portRefs)
Returns true if the current port ref's port equals within one of the passed-in collection of EdifPortRef Object's port. |
boolean |
equalsPortWithin(java.util.Collection ports)
Returns true if the current port ref equals within one of the passed-in collection of EdifPort Objects. |
int |
getBusMember()
Returns the index this EdifPortRef Object refers to within a bus. |
EdifCellInstance |
getCellInstance()
Returns the EdifCellInstance Object that this EdifPortRef Object connects to. |
EdifNet |
getNet()
Returns the EdifNet Object that this EdifPortRef Object is connected to. |
EdifPort |
getPort()
Returns the EdifPort Object that this EdifPortRef Object refers to. |
EdifCellInstance |
getRefCell()
Deprecated. This method has been deprecated in favor of the EdifPort.getCellInstance() method that contains a more intuitive method name. |
EdifPort |
getRefPort()
Deprecated. This method has been deprecated in favor of the EdifPort.getPort() method that contains a more intuitive method name. |
EdifSingleBitPort |
getSingleBitPort()
Returns the EdifSingleBitPort Object that this EdifPortRef Object refers to. |
private void |
init(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance i)
|
boolean |
isDriverPortRef()
Indicates that the port ref is a "driver" connection rather than a sink connection. |
boolean |
isSingleBitPortRef()
Returns true if port ref corresponds to a single-bit port (i.e. bus member = -1). |
boolean |
isTopLevelPortRef()
Indicates that the EdifPortRef is connected to a top level port. |
boolean |
matchesWithin(java.util.Collection portRefs)
Returns true if the current port ref matches within the passed-in collection of EdifPortRef Objects. |
java.lang.String |
toString()
Returns a String representation of this Object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EdifSingleBitPort _refSingleBitPort
private EdifCellInstance _cellInstance
private EdifNet _net
| Constructor Detail |
|---|
public EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance)
net - The EdifNet Object this EdifPortRef Object is
connected toport - The EdifPort Object that this EdifPortRef refers toinstance - The EdifCellInstance Object this EdifPortRef
connects to
public EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance,
int busMember)
net - The EdifNet Object this EdifPortRef Object is
connected toport - The EdifPort Object that this EdifPortRef refers toinstance - The EdifCellInstance Object this EdifPortRef
connects tobusMember - The position within the EdifPort object to
retrieve the EdifSingleBitPort
public EdifPortRef(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance instance)
net - The EdifNet Object this EdifPortRef Object is
connected toport - The EdifSingleBitPort Object that this EdifPortRef
refers toinstance - The EdifCellInstance Object this EdifPortRef
connects to| Method Detail |
|---|
private void init(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance i)
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equalsPortWithin(java.util.Collection ports)
ports - A Collection of EdifPort Objects that this
EdifPortRef Object will be compared to in order to determine if
an EdifPort exists between this EdifPortRef Object, and an
EdifPort Object within the Collection
public boolean equalsPortRefWithin(java.util.Collection portRefs)
portRefs - A Collection of EdifPortRef Objects that the port
of this EdifPortRef Object will be compared to in order to
determine if an EdifPort exists between this EdifPortRef
Object, and an EdifPortRef Object within the Collection
public int getBusMember()
public EdifNet getNet()
public EdifCellInstance getRefCell()
public EdifCellInstance getCellInstance()
public EdifPort getRefPort()
public EdifPort getPort()
public EdifSingleBitPort getSingleBitPort()
public boolean matchesWithin(java.util.Collection portRefs)
portRefs - A Collection of EdifPortRef Objects that this
EdifPortRef Object will be compared to in order to determine if
a match exists between this EdifPortRef Object, and an
EdifPortRef Object within the Collection
public boolean isSingleBitPortRef()
public boolean isTopLevelPortRef()
public boolean isDriverPortRef()
public 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 | ||||||||