byucc.edif
Class EdifSingleBitPort

java.lang.Object
  extended by byucc.edif.NamedPropertyObject
      extended by byucc.edif.EdifSingleBitPort
All Implemented Interfaces:
Nameable, Properties, java.io.Serializable

public class EdifSingleBitPort
extends NamedPropertyObject
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,v 1.6 2005/08/05 18:33:05 nhr2 Exp $
Author:
Mike Wirthlin
See Also:
Serialized Form

Field Summary
private  int _bitPosition
           
private  EdifPort _parent
           
 
Constructor Summary
EdifSingleBitPort(EdifPort parent, int position)
          Constructor requires
 
Method Summary
 int bitPosition()
           
 EdifNet getInnerNet()
          Searches 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 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

_bitPosition

private int _bitPosition

_parent

private EdifPort _parent
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

getParent

public EdifPort getParent()

bitPosition

public int bitPosition()

getInnerNet

public EdifNet getInnerNet()
Searches 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.

getPortName

public java.lang.String getPortName()

toString

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