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

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.DiodeElement
Direct Known Subclasses:
LEDElement

public class DiodeElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 double lastvoltdiff
          DOCUMENT ME!
 double leakage
          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
DiodeElement(int xx, int yy)
          Creates a new DiodeElement object.
DiodeElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new DiodeElement object.
 
Method Summary
 void calculateCurrent()
          DOCUMENT ME!
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 void drawDiode(java.awt.Graphics g, int x1, int y1, int x2, int y2, double v1, double v2)
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 double limitStep(double vnew, double vold)
          DOCUMENT ME!
 boolean nonLinear()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setup()
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, canViewInScope, doAdjust, doDots, drag, drawPost, drawPost, drawPosts, drawValues, dump, getBasicInfo, getCircuitFrame, getConnection, getCurrent, getDumpClass, getEditInfo, getInternalNodeCount, getNode, getPost, getPostCount, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, getVoltageSourceCount, hasGroundConnection, isWire, move, movePoint, setBbox, setCircuitFrame, setCurrent, setEditValue, setNode, setNodeVoltage, setPoints, 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

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

leakage

public double leakage
DOCUMENT ME!


lastvoltdiff

public double lastvoltdiff
DOCUMENT ME!


vcrit

public double vcrit
DOCUMENT ME!

Constructor Detail

DiodeElement

public DiodeElement(int xx,
                    int yy)
Creates a new DiodeElement object.

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

DiodeElement

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

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

nonLinear

public boolean nonLinear()
DOCUMENT ME!

Overrides:
nonLinear in class CircuitElement
Returns:
DOCUMENT ME!

setup

public void setup()
DOCUMENT ME!


getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType 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!

reset

public void reset()
DOCUMENT ME!

Overrides:
reset in class CircuitElement

drawDiode

public void drawDiode(java.awt.Graphics g,
                      int x1,
                      int y1,
                      int x2,
                      int y2,
                      double v1,
                      double v2)
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
x1 - DOCUMENT ME!
y1 - DOCUMENT ME!
x2 - DOCUMENT ME!
y2 - DOCUMENT ME!
v1 - DOCUMENT ME!
v2 - DOCUMENT ME!

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

calculateCurrent

public void calculateCurrent()
DOCUMENT ME!

Overrides:
calculateCurrent in class CircuitElement

getInfo

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

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