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

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

public class WireElement
extends CircuitElement

DOCUMENT ME!


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

Constructor Detail

WireElement

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

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

WireElement

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

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

draw

public void draw(java.awt.Graphics g)
Description copied from class: CircuitElement
DOCUMENT ME!

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

stamp

public void stamp()
Description copied from class: CircuitElement
DOCUMENT ME!

Overrides:
stamp in class CircuitElement

getVoltageSourceCount

public int getVoltageSourceCount()
DOCUMENT ME!

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

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!

getPower

public double getPower()
DOCUMENT ME!

Overrides:
getPower in class CircuitElement
Returns:
DOCUMENT ME!

getVoltageDiff

public double getVoltageDiff()
DOCUMENT ME!

Overrides:
getVoltageDiff in class CircuitElement
Returns:
DOCUMENT ME!

isWire

public boolean isWire()
DOCUMENT ME!

Overrides:
isWire in class CircuitElement
Returns:
DOCUMENT ME!