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

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

public class TransformerElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 double a1
          DOCUMENT ME!
 double a2
          DOCUMENT ME!
 double a3
          DOCUMENT ME!
 double a4
          DOCUMENT ME!
 int coil1ax
          DOCUMENT ME!
 int coil1ay
          DOCUMENT ME!
 int coil1bx
          DOCUMENT ME!
 int coil1by
          DOCUMENT ME!
 int coil2ax
          DOCUMENT ME!
 int coil2ay
          DOCUMENT ME!
 int coil2bx
          DOCUMENT ME!
 int coil2by
          DOCUMENT ME!
 int core1ax
          DOCUMENT ME!
 int core1ay
          DOCUMENT ME!
 int core1bx
          DOCUMENT ME!
 int core1by
          DOCUMENT ME!
 int core2ax
          DOCUMENT ME!
 int core2ay
          DOCUMENT ME!
 int core2bx
          DOCUMENT ME!
 int core2by
          DOCUMENT ME!
 double curcount1
          DOCUMENT ME!
 double curcount2
          DOCUMENT ME!
 double current1
          DOCUMENT ME!
 double current2
          DOCUMENT ME!
 double curSourceValue1
          DOCUMENT ME!
 double curSourceValue2
          DOCUMENT ME!
 double inductance
          DOCUMENT ME!
 double ratio
          DOCUMENT ME!
 int x3
          DOCUMENT ME!
 int x4
          DOCUMENT ME!
 int y3
          DOCUMENT ME!
 int y4
          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
TransformerElement(int xx, int yy)
          Creates a new TransformerElement object.
TransformerElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new TransformerElement object.
 
Method Summary
 void calculateCurrent()
          DOCUMENT ME!
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 void drawCoil(java.awt.Graphics g, int x1, int y1, int x2, int y2, int cox, int coy, double v1, double v2)
          DOCUMENT ME!
 java.lang.String dump()
          DOCUMENT ME!
 boolean getConnection(int n1, int n2)
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 EditInfo getEditInfo(int n)
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 java.awt.Point getPost(int n)
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setEditValue(int n, EditInfo ei)
          DOCUMENT ME!
 void setPoints()
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 void startIteration()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, canViewInScope, doAdjust, doDots, drag, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getCurrent, getDumpClass, getInternalNodeCount, getNode, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, getVoltageSourceCount, hasGroundConnection, isWire, move, movePoint, nonLinear, setBbox, setCircuitFrame, setCurrent, setNode, setNodeVoltage, 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

inductance

public double inductance
DOCUMENT ME!


ratio

public double ratio
DOCUMENT ME!


x3

public int x3
DOCUMENT ME!


y3

public int y3
DOCUMENT ME!


x4

public int x4
DOCUMENT ME!


y4

public int y4
DOCUMENT ME!


coil1ax

public int coil1ax
DOCUMENT ME!


coil1ay

public int coil1ay
DOCUMENT ME!


coil1bx

public int coil1bx
DOCUMENT ME!


coil1by

public int coil1by
DOCUMENT ME!


coil2ax

public int coil2ax
DOCUMENT ME!


coil2ay

public int coil2ay
DOCUMENT ME!


coil2bx

public int coil2bx
DOCUMENT ME!


coil2by

public int coil2by
DOCUMENT ME!


core1ax

public int core1ax
DOCUMENT ME!


core1ay

public int core1ay
DOCUMENT ME!


core1bx

public int core1bx
DOCUMENT ME!


core1by

public int core1by
DOCUMENT ME!


core2ax

public int core2ax
DOCUMENT ME!


core2ay

public int core2ay
DOCUMENT ME!


core2bx

public int core2bx
DOCUMENT ME!


core2by

public int core2by
DOCUMENT ME!


current1

public double current1
DOCUMENT ME!


current2

public double current2
DOCUMENT ME!


curcount1

public double curcount1
DOCUMENT ME!


curcount2

public double curcount2
DOCUMENT ME!


a1

public double a1
DOCUMENT ME!


a2

public double a2
DOCUMENT ME!


a3

public double a3
DOCUMENT ME!


a4

public double a4
DOCUMENT ME!


curSourceValue1

public double curSourceValue1
DOCUMENT ME!


curSourceValue2

public double curSourceValue2
DOCUMENT ME!

Constructor Detail

TransformerElement

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

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

TransformerElement

public TransformerElement(int xa,
                          int ya,
                          int xb,
                          int yb,
                          int f,
                          java.util.StringTokenizer st)
Creates a new TransformerElement 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 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!

drawCoil

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

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

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

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!

reset

public void reset()
DOCUMENT ME!

Overrides:
reset in class CircuitElement

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

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!

getConnection

public boolean getConnection(int n1,
                             int n2)
DOCUMENT ME!

Overrides:
getConnection in class CircuitElement
Parameters:
n1 - DOCUMENT ME!
n2 - DOCUMENT ME!
Returns:
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!