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

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.VoltageElement
          extended by org.jscience.physics.electricity.circuitry.elements.RailElement
Direct Known Subclasses:
ACRailElement, AntennaElement, ClockElement, SquareRailElement

public class RailElement
extends VoltageElement

DOCUMENT ME!


Field Summary
 int FLAG_CLOCK
          DOCUMENT ME!
 
Fields inherited from class org.jscience.physics.electricity.circuitry.elements.VoltageElement
bias, circleSize, FLAG_COS, freqTimeZero, frequency, maxVoltage, waveform, WF_AC, WF_DC, WF_PULSE, WF_SAWTOOTH, WF_SQUARE, WF_TRIANGLE
 
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
RailElement(int xx, int yy)
          Creates a new RailElement object.
RailElement(int xx, int yy, int wf)
          Creates a new RailElement object.
RailElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new RailElement 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!
 int getPostCount()
          DOCUMENT ME!
 double getVoltageDiff()
          DOCUMENT ME!
 boolean hasGroundConnection(int n1)
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.elements.VoltageElement
drawWaveform, getEditInfo, getInfo, getPower, getVoltage, getVoltageSourceCount, reset, setEditValue, triangleFunc
 
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, getInternalNodeCount, getNode, getPost, getScopeUnits, getScopeValue, getVoltageSource, isWire, move, movePoint, nonLinear, setBbox, setCircuitFrame, setCurrent, 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

FLAG_CLOCK

public final int FLAG_CLOCK
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

RailElement

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

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

RailElement

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

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

RailElement

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

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

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class VoltageElement
Returns:
DOCUMENT ME!

dump

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

Overrides:
dump in class VoltageElement
Returns:
DOCUMENT ME!

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

draw

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

Overrides:
draw in class VoltageElement
Parameters:
g - DOCUMENT ME!

getVoltageDiff

public double getVoltageDiff()
DOCUMENT ME!

Overrides:
getVoltageDiff in class VoltageElement
Returns:
DOCUMENT ME!

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class VoltageElement

doStep

public void doStep()
DOCUMENT ME!

Overrides:
doStep in class VoltageElement

hasGroundConnection

public boolean hasGroundConnection(int n1)
DOCUMENT ME!

Overrides:
hasGroundConnection in class CircuitElement
Parameters:
n1 - DOCUMENT ME!
Returns:
DOCUMENT ME!