edu.byu.ece.edif.core
Class EdifSingleBitPort

java.lang.Object
  extended by edu.byu.ece.edif.core.EdifSingleBitPort
All Implemented Interfaces:
java.io.Serializable

public class EdifSingleBitPort
extends java.lang.Object
implements java.io.Serializable

Represents an Edif single bit port, which belongs to a specific EdifPort. This class specifies a bit position and a reference to its parent EdifPort.

Version:
$Id:EdifSingleBitPort.java 198 2008-04-16 21:14:21Z jamesfcarroll $
See Also:
Serialized Form

Field Summary
private  int _bitPosition
          Position in multi-bit EdifPort
private  EdifPort _parent
          Parent EdifPort
 
Constructor Summary
EdifSingleBitPort(EdifPort parent, int position)
          Constructor requires
 
Method Summary
 int bitPosition()
           
 boolean equals(EdifSingleBitPort esp)
           
 boolean equals(java.lang.Object o)
           
 EdifNet getInnerNet()
          Search through the EdifNet objects owned by the EdifCell that uses this EdifSinglebitPort and find the EdifNet object that connects to this top-level port.
 EdifPort getParent()
           
 java.lang.String getPortName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bitPosition

private int _bitPosition
Position in multi-bit EdifPort


_parent

private EdifPort _parent
Parent EdifPort

Constructor Detail

EdifSingleBitPort

public EdifSingleBitPort(EdifPort parent,
                         int position)
Constructor requires

Parameters:
parent - The parent EdifPort of this single-bit port
position - The bit-position of this single-bit port
Method Detail

bitPosition

public int bitPosition()

equals

public boolean equals(EdifSingleBitPort esp)
Parameters:
esp -
Returns:
true if the Port names, parent EdifPorts, and InnerNets are all the same object. Also checks the bitposition.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getInnerNet

public EdifNet getInnerNet()
Search through the EdifNet objects owned by the EdifCell that uses this EdifSinglebitPort and find the EdifNet object that connects to this top-level port. Note that this method finds the net connecting to the top-level port -- this method does not look for "outer nets" that connect to EdifCellInstnace objects.

Returns:
The EdifNet object that connects to this single bit port.

getParent

public EdifPort getParent()

getPortName

public java.lang.String getPortName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object