com.sun.electric.technology
Class TransistorSize
java.lang.Object
com.sun.electric.technology.PrimitiveNodeSize
com.sun.electric.technology.TransistorSize
public class TransistorSize
- extends PrimitiveNodeSize
Holds the Width and Length of a PrimitiveNode that is a transistor.
This holds the width, length, and area as objects, because the width and length,
may be specified as strings if they are java code, or just numbers.
Constructor Summary |
TransistorSize(java.lang.Object width,
java.lang.Object length,
java.lang.Object activeLen,
boolean polyAlignX)
Constructor creates a TransistorSize with a given size. |
Method Summary |
java.lang.Object |
getActiveLength()
Method to return the length of the active area of this TransistorSize. |
double |
getDoubleActiveLength()
Gets the active length *ONLY IF* the active length can be converted to a double. |
double |
getDoubleArea()
Gets the area *ONLY IF* the width and length can be converted to a double. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransistorSize
public TransistorSize(java.lang.Object width,
java.lang.Object length,
java.lang.Object activeLen,
boolean polyAlignX)
- Constructor creates a TransistorSize with a given size.
- Parameters:
width
- the width of the TransistorSize.length
- the length of the TransistorSize.activeLen
- the length of the active area of the TransistorSize.polyAlignX
-
getActiveLength
public java.lang.Object getActiveLength()
- Method to return the length of the active area of this TransistorSize.
- Returns:
- the length of the active area of this TransistorSize.
getDoubleArea
public double getDoubleArea()
- Gets the area *ONLY IF* the width and length can be converted to a double.
i.e. they are Numbers or a parsable Strings. If they are some other type,
this method returns zero.
- Returns:
- the area.
getDoubleActiveLength
public double getDoubleActiveLength()
- Gets the active length *ONLY IF* the active length can be converted to a double.
i.e. they are Numbers or a parsable Strings. If they are some other type,
this method returns zero.
- Returns:
- the active length.