|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PortCharacteristic>
com.sun.electric.database.prototype.PortCharacteristic
public enum PortCharacteristic
PortCharacteristic is a typesafe enum class that describes the function of a PortProto. PortCharacteristics are technology-independent and describe the nature of the port (input, output, etc.)
Enum Constant Summary | |
---|---|
BIDIR
Describes a bidirectional port. |
|
C1
Describes a clock phase 1 port. |
|
C2
Describes a clock phase 2 port. |
|
C3
Describes a clock phase 3 port. |
|
C4
Describes a clock phase 4 port. |
|
C5
Describes a clock phase 5 port. |
|
C6
Describes a clock phase 6 port. |
|
CLK
Describes an un-phased clock port. |
|
GND
Describes a ground port. |
|
IN
Describes an input port. |
|
OUT
Describes an output port. |
|
PWR
Describes a power port. |
|
REFBASE
Describes a bias-level reference base port. |
|
REFIN
Describes a bias-level reference input port. |
|
REFOUT
Describes a bias-level reference output port. |
|
UNKNOWN
Describes an unknown port. |
Method Summary | |
---|---|
static PortCharacteristic |
findCharacteristic(int bits)
Method to find the characteristic associated with the given bit value. |
static PortCharacteristic |
findCharacteristic(java.lang.String wantName)
Method to find the characteristic associated with the given name. |
static PortCharacteristic |
findCharacteristicShort(java.lang.String shortName)
Method to find the characteristic associated with the given short name. |
int |
getBits()
Method to return the bit value associated with this PortCharacteristic. |
java.lang.String |
getFullName()
Method to return the full name of this PortCharacteristic. |
java.lang.String |
getName()
Method to return the short name of this PortCharacteristic. |
int |
getOrder()
Method to return the ordering of this PortCharacteristic. |
static java.util.List<PortCharacteristic> |
getOrderedCharacteristics()
Method to return an iterator over all of the PortCharacteristics. |
java.lang.String |
getShortName()
Method to return the short name of this PortCharacteristic. |
boolean |
isClock()
Method to tell whether this PortCharacteristic is a "clock". |
boolean |
isReference()
Method to tell whether this PortCharacteristic is "reference". |
java.lang.String |
toString()
Returns a printable version of this PortCharacteristic. |
static PortCharacteristic |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PortCharacteristic[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PortCharacteristic UNKNOWN
public static final PortCharacteristic CLK
public static final PortCharacteristic C1
public static final PortCharacteristic C2
public static final PortCharacteristic C3
public static final PortCharacteristic C4
public static final PortCharacteristic C5
public static final PortCharacteristic C6
public static final PortCharacteristic IN
public static final PortCharacteristic OUT
public static final PortCharacteristic BIDIR
public static final PortCharacteristic PWR
public static final PortCharacteristic GND
public static final PortCharacteristic REFOUT
public static final PortCharacteristic REFIN
public static final PortCharacteristic REFBASE
Method Detail |
---|
public static PortCharacteristic[] values()
for (PortCharacteristic c : PortCharacteristic.values()) System.out.println(c);
public static PortCharacteristic valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getBits()
public int getOrder()
public java.lang.String getFullName()
public java.lang.String getShortName()
public java.lang.String getName()
public boolean isReference()
public boolean isClock()
public static PortCharacteristic findCharacteristic(int bits)
bits
- the bit value associated with a PortCharacteristic.
public static PortCharacteristic findCharacteristic(java.lang.String wantName)
wantName
- the name of a PortCharacteristic.
public static PortCharacteristic findCharacteristicShort(java.lang.String shortName)
shortName
- the short name of a PortCharacteristic.
public static java.util.List<PortCharacteristic> getOrderedCharacteristics()
public java.lang.String toString()
toString
in class java.lang.Enum<PortCharacteristic>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |