org.jscience.physics.electricity.circuitry.elements
Class TransistorElement

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.TransistorElement
Direct Known Subclasses:
NTransistorElement, PTransistorElement

public class TransistorElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 int[] arrowPointsX
          DOCUMENT ME!
 int[] arrowPointsY
          DOCUMENT ME!
 int col2x
          DOCUMENT ME!
 int col2y
          DOCUMENT ME!
 int collx
          DOCUMENT ME!
 int colly
          DOCUMENT ME!
 double curcount_b
          DOCUMENT ME!
 double curcount_c
          DOCUMENT ME!
 double curcount_e
          DOCUMENT ME!
 int emi2x
          DOCUMENT ME!
 int emi2y
          DOCUMENT ME!
 int emitx
          DOCUMENT ME!
 int emity
          DOCUMENT ME!
static double fgain
          DOCUMENT ME!
 double ib
          DOCUMENT ME!
 double ic
          DOCUMENT ME!
 double ie
          DOCUMENT ME!
 double lastvbc
          DOCUMENT ME!
 double lastvbe
          DOCUMENT ME!
static double leakage
          DOCUMENT ME!
 int midpx
          DOCUMENT ME!
 int midpy
          DOCUMENT ME!
 int pnp
          DOCUMENT ME!
 int rectH
          DOCUMENT ME!
 int rectW
          DOCUMENT ME!
 int rectX
          DOCUMENT ME!
 int rectY
          DOCUMENT ME!
static double rgain
          DOCUMENT ME!
 double vcrit
          DOCUMENT ME!
static double vdcoef
          DOCUMENT ME!
static double vt
          DOCUMENT ME!
 
Fields inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
boundingBox, circuitFrame, curcount, current, flags, nodes, noDiagonal, volts, voltSource, x, x2, y, y2
 
Constructor Summary
TransistorElement(int xx, int yy, boolean pnpflag)
          Creates a new TransistorElement object.
TransistorElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new TransistorElement object.
 
Method Summary
 boolean canViewInScope()
          DOCUMENT ME!
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 java.lang.String dump()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 java.awt.Point getPost(int n)
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 double getPower()
          DOCUMENT ME!
 java.lang.String getScopeUnits(int x)
          DOCUMENT ME!
 double getScopeValue(int x)
          DOCUMENT ME!
 double limitStep(double vnew, double vold)
          DOCUMENT ME!
 boolean nonLinear()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setPoints()
          DOCUMENT ME!
 void setup()
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, doAdjust, doDots, drag, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getConnection, getCurrent, getDumpClass, getEditInfo, getInternalNodeCount, getNode, getVoltageDiff, getVoltageSource, getVoltageSourceCount, hasGroundConnection, isWire, move, movePoint, setBbox, setCircuitFrame, setCurrent, setEditValue, setNode, setNodeVoltage, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, setVoltageSource, startIteration, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leakage

public static final double leakage
DOCUMENT ME!

See Also:
Constant Field Values

vt

public static final double vt
DOCUMENT ME!

See Also:
Constant Field Values

vdcoef

public static final double vdcoef
DOCUMENT ME!

See Also:
Constant Field Values

fgain

public static final double fgain
DOCUMENT ME!

See Also:
Constant Field Values

rgain

public static final double rgain
DOCUMENT ME!

See Also:
Constant Field Values

pnp

public int pnp
DOCUMENT ME!


collx

public int collx
DOCUMENT ME!


colly

public int colly
DOCUMENT ME!


emitx

public int emitx
DOCUMENT ME!


emity

public int emity
DOCUMENT ME!


midpx

public int midpx
DOCUMENT ME!


midpy

public int midpy
DOCUMENT ME!


col2x

public int col2x
DOCUMENT ME!


col2y

public int col2y
DOCUMENT ME!


emi2x

public int emi2x
DOCUMENT ME!


emi2y

public int emi2y
DOCUMENT ME!


arrowPointsX

public int[] arrowPointsX
DOCUMENT ME!


arrowPointsY

public int[] arrowPointsY
DOCUMENT ME!


rectX

public int rectX
DOCUMENT ME!


rectY

public int rectY
DOCUMENT ME!


rectW

public int rectW
DOCUMENT ME!


rectH

public int rectH
DOCUMENT ME!


ic

public double ic
DOCUMENT ME!


ie

public double ie
DOCUMENT ME!


ib

public double ib
DOCUMENT ME!


curcount_c

public double curcount_c
DOCUMENT ME!


curcount_e

public double curcount_e
DOCUMENT ME!


curcount_b

public double curcount_b
DOCUMENT ME!


vcrit

public double vcrit
DOCUMENT ME!


lastvbc

public double lastvbc
DOCUMENT ME!


lastvbe

public double lastvbe
DOCUMENT ME!

Constructor Detail

TransistorElement

public TransistorElement(int xx,
                         int yy,
                         boolean pnpflag)
Creates a new TransistorElement object.

Parameters:
xx - DOCUMENT ME!
yy - DOCUMENT ME!
pnpflag - DOCUMENT ME!

TransistorElement

public TransistorElement(int xa,
                         int ya,
                         int xb,
                         int yb,
                         int f,
                         java.util.StringTokenizer st)
Creates a new TransistorElement object.

Parameters:
xa - DOCUMENT ME!
ya - DOCUMENT ME!
xb - DOCUMENT ME!
yb - DOCUMENT ME!
f - DOCUMENT ME!
st - DOCUMENT ME!
Method Detail

setup

public void setup()
DOCUMENT ME!


nonLinear

public boolean nonLinear()
DOCUMENT ME!

Overrides:
nonLinear in class CircuitElement
Returns:
DOCUMENT ME!

reset

public void reset()
DOCUMENT ME!

Overrides:
reset in class CircuitElement

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!

dump

public java.lang.String dump()
DOCUMENT ME!

Overrides:
dump in class CircuitElement
Returns:
DOCUMENT ME!

draw

public void draw(java.awt.Graphics g)
DOCUMENT ME!

Specified by:
draw in class CircuitElement
Parameters:
g - DOCUMENT ME!

getPost

public java.awt.Point getPost(int n)
DOCUMENT ME!

Overrides:
getPost in class CircuitElement
Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

getPower

public double getPower()
DOCUMENT ME!

Overrides:
getPower in class CircuitElement
Returns:
DOCUMENT ME!

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

limitStep

public double limitStep(double vnew,
                        double vold)
DOCUMENT ME!

Parameters:
vnew - DOCUMENT ME!
vold - DOCUMENT ME!
Returns:
DOCUMENT ME!

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class CircuitElement

doStep

public void doStep()
DOCUMENT ME!

Overrides:
doStep in class CircuitElement

getInfo

public void getInfo(java.lang.String[] arr)
DOCUMENT ME!

Overrides:
getInfo in class CircuitElement
Parameters:
arr - DOCUMENT ME!

getScopeValue

public double getScopeValue(int x)
DOCUMENT ME!

Overrides:
getScopeValue in class CircuitElement
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

getScopeUnits

public java.lang.String getScopeUnits(int x)
DOCUMENT ME!

Overrides:
getScopeUnits in class CircuitElement
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

canViewInScope

public boolean canViewInScope()
DOCUMENT ME!

Overrides:
canViewInScope in class CircuitElement
Returns:
DOCUMENT ME!