|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.xmac.WireInfo
This class essentially contains all the port and wire info for a xmac document. The methods give the user convenient access to all the info they should need about the wires.
Field Summary | |
static int |
TYPE_GENERIC
This is the type for generic ports. |
static int |
TYPE_IMPLICIT
This is the type for implicit ports. |
static int |
TYPE_INVALID
Invalid wire |
static int |
TYPE_OPTIONAL
This is the type for a port that is optional. |
static int |
TYPE_PORT
This is the type associated with just a standard port. |
static int |
TYPE_WIRE
This is the type for a wire, rather than a port. |
Constructor Summary | |
WireInfo(org.w3c.dom.Node docRoot)
Contructs a new WireInfo object. |
Method Summary | |
boolean |
firstWire()
Sets the current wire to the first in the list. |
boolean |
genericPortExists()
Test whether a generic port exists or not. |
boolean |
genericPortWidthExists()
Test whether one or more of the port interface wires has a generic width. |
int |
getGenericCount()
Returns the number of generic port entries in the current list. |
int |
getImplicitCount()
Returns the number of implicit ports in the current list. |
int |
getOptionalCount()
Returns the number of optional port entries in the current list. |
int |
getPortCount()
Returns the number of ports not including generic and implicit ports. |
java.lang.String |
getPortType()
Returns the type of the port such as: in, out, generic, etc. |
java.lang.String |
getPortValue()
Get the value of the port. |
int |
getTotalWires()
Returns the total combined number of wires and ports in the current list. |
int |
getWireCount()
Returns the total number of wires. |
java.lang.String |
getWireName()
Returns the name of the current wire. |
int |
getWireType()
Returns the type of the wire as defined by the final static int
members of this class. |
java.lang.String |
getWireWidth()
Returns the width string of the current wire. |
java.lang.String |
getWireWidth(java.lang.String name)
Get the width of a wire. |
boolean |
implicitPortExists()
Test whether an implicit port exists or not. |
boolean |
nextWire()
Increments the pointer to the next wire in the list. |
boolean |
optionalPortExists()
Test whether a generic port exists or not. |
boolean |
setWireNumber(int number)
Sets the current wire number the user wants to access. |
boolean |
validateWire(java.lang.String name)
Checks if a given wire is a valid wire in the current list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_INVALID
public static final int TYPE_PORT
public static final int TYPE_IMPLICIT
public static final int TYPE_OPTIONAL
public static final int TYPE_GENERIC
public static final int TYPE_WIRE
Constructor Detail |
public WireInfo(org.w3c.dom.Node docRoot) throws java.lang.Exception
docRoot
- The Node
of the document to extract the info from.Method Detail |
public boolean validateWire(java.lang.String name)
name
- A String
containing the name of the wire to validate.
public boolean genericPortExists()
public boolean optionalPortExists()
public boolean implicitPortExists()
public boolean genericPortWidthExists()
public boolean setWireNumber(int number)
number
- The int
that represents the wire number to access.
public boolean nextWire()
public boolean firstWire()
public java.lang.String getWireWidth()
String
representation of the current wire width.public java.lang.String getWireWidth(java.lang.String name)
name
- A String
with the name of the wire.
public int getWireType()
final static int
members of this class.
final static int
fields from above.public java.lang.String getWireName()
String
with the name of the current wire or port.public java.lang.String getPortType()
public java.lang.String getPortValue()
public int getTotalWires()
int
with the total number of wires and ports in this cell.public int getWireCount()
public int getPortCount()
public int getImplicitCount()
public int getGenericCount()
public int getOptionalCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |