com.sun.electric.technology
Class TransistorSize

java.lang.Object
  extended by com.sun.electric.technology.PrimitiveNodeSize
      extended by 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.


Field Summary
 
Fields inherited from class com.sun.electric.technology.PrimitiveNodeSize
length, width
 
Constructor Summary
TransistorSize(java.lang.Object width, java.lang.Object length, java.lang.Object activeLen, java.lang.Object mFactor, 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.
 double getMFactor()
          Gets the m multiplier factor *ONLY IF* the m factor can be converted to a double.
 
Methods inherited from class com.sun.electric.technology.PrimitiveNodeSize
getDoubleAlongX, getDoubleAlongY, getDoubleLength, getDoubleWidth, getLength, getLengthInString, getWidth, getWidthInString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransistorSize

public TransistorSize(java.lang.Object width,
                      java.lang.Object length,
                      java.lang.Object activeLen,
                      java.lang.Object mFactor,
                      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 -
mFactor - the m multiplier factor. This is only populated for schematics.
Method Detail

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.

getMFactor

public double getMFactor()
Gets the m multiplier factor *ONLY IF* the m factor can be converted to a double. Otherwise, returns 1.

Returns:
the m factor.