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

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.CapacitorElement

public class CapacitorElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 double capacitance
          DOCUMENT ME!
 double compResistance
          DOCUMENT ME!
 double voltdiff
          DOCUMENT ME!
 double voltSourceValue
          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
CapacitorElement(int xx, int yy)
          Creates a new CapacitorElement object.
CapacitorElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new CapacitorElement object.
 
Method Summary
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 java.lang.String dump()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 EditInfo getEditInfo(int n)
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 int getInternalNodeCount()
          DOCUMENT ME!
 int getVoltageSourceCount()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setEditValue(int n, EditInfo ei)
          DOCUMENT ME!
 void setNodeVoltage(int n, double c)
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 void startIteration()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, canViewInScope, doAdjust, doDots, drag, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getConnection, getCurrent, getDumpClass, getNode, getPost, getPostCount, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, hasGroundConnection, isWire, move, movePoint, nonLinear, setBbox, setCircuitFrame, setCurrent, setNode, setPoints, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, setVoltageSource, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capacitance

public double capacitance
DOCUMENT ME!


compResistance

public double compResistance
DOCUMENT ME!


voltdiff

public double voltdiff
DOCUMENT ME!


voltSourceValue

public double voltSourceValue
DOCUMENT ME!

Constructor Detail

CapacitorElement

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

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

CapacitorElement

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

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

setNodeVoltage

public void setNodeVoltage(int n,
                           double c)
DOCUMENT ME!

Overrides:
setNodeVoltage in class CircuitElement
Parameters:
n - DOCUMENT ME!
c - 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!

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class CircuitElement

startIteration

public void startIteration()
DOCUMENT ME!

Overrides:
startIteration in class CircuitElement

doStep

public void doStep()
DOCUMENT ME!

Overrides:
doStep in class CircuitElement

getVoltageSourceCount

public int getVoltageSourceCount()
DOCUMENT ME!

Overrides:
getVoltageSourceCount in class CircuitElement
Returns:
DOCUMENT ME!

getInternalNodeCount

public int getInternalNodeCount()
DOCUMENT ME!

Overrides:
getInternalNodeCount in class CircuitElement
Returns:
DOCUMENT ME!

getInfo

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

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

getEditInfo

public EditInfo getEditInfo(int n)
DOCUMENT ME!

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

setEditValue

public void setEditValue(int n,
                         EditInfo ei)
DOCUMENT ME!

Overrides:
setEditValue in class CircuitElement
Parameters:
n - DOCUMENT ME!
ei - DOCUMENT ME!