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

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

public class OpAmpElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 int FLAG_SMALL
          DOCUMENT ME!
 int FLAG_SWAP
          DOCUMENT ME!
 double gain
          DOCUMENT ME!
 int in1nx
          DOCUMENT ME!
 int in1ny
          DOCUMENT ME!
 int in1px
          DOCUMENT ME!
 int in1py
          DOCUMENT ME!
 int in2nx
          DOCUMENT ME!
 int in2ny
          DOCUMENT ME!
 int in2px
          DOCUMENT ME!
 int in2py
          DOCUMENT ME!
 double lastvd
          DOCUMENT ME!
 double maxOut
          DOCUMENT ME!
 double minOut
          DOCUMENT ME!
 int opaddtext
          DOCUMENT ME!
 int opheight
          DOCUMENT ME!
 int opsize
          DOCUMENT ME!
 int opwidth
          DOCUMENT ME!
 int outnx
          DOCUMENT ME!
 int outny
          DOCUMENT ME!
 int outpx
          DOCUMENT ME!
 int outpy
          DOCUMENT ME!
 int[] triPointsX
          DOCUMENT ME!
 int[] triPointsY
          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
OpAmpElement(int xx, int yy)
          Creates a new OpAmpElement object.
OpAmpElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new OpAmpElement object.
 
Method Summary
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          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!
 double getPower()
          DOCUMENT ME!
 double getVoltageDiff()
          DOCUMENT ME!
 int getVoltageSourceCount()
          DOCUMENT ME!
 boolean hasGroundConnection(int n1)
          DOCUMENT ME!
 boolean nonLinear()
          DOCUMENT ME!
 void setEditValue(int n, EditInfo ei)
          DOCUMENT ME!
 void setPoints()
          DOCUMENT ME!
 void setSize(int s)
          DOCUMENT ME!
 void stamp()
          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, getCurrent, getDumpClass, getInternalNodeCount, getNode, getScopeUnits, getScopeValue, getVoltageSource, isWire, move, movePoint, reset, setBbox, setCircuitFrame, setCurrent, setNode, setNodeVoltage, 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

opsize

public int opsize
DOCUMENT ME!


opheight

public int opheight
DOCUMENT ME!


opwidth

public int opwidth
DOCUMENT ME!


opaddtext

public int opaddtext
DOCUMENT ME!


maxOut

public double maxOut
DOCUMENT ME!


minOut

public double minOut
DOCUMENT ME!


FLAG_SWAP

public final int FLAG_SWAP
DOCUMENT ME!

See Also:
Constant Field Values

FLAG_SMALL

public final int FLAG_SMALL
DOCUMENT ME!

See Also:
Constant Field Values

in1px

public int in1px
DOCUMENT ME!


in1py

public int in1py
DOCUMENT ME!


in2px

public int in2px
DOCUMENT ME!


in2py

public int in2py
DOCUMENT ME!


outpx

public int outpx
DOCUMENT ME!


outpy

public int outpy
DOCUMENT ME!


in1nx

public int in1nx
DOCUMENT ME!


in1ny

public int in1ny
DOCUMENT ME!


in2nx

public int in2nx
DOCUMENT ME!


in2ny

public int in2ny
DOCUMENT ME!


outnx

public int outnx
DOCUMENT ME!


outny

public int outny
DOCUMENT ME!


triPointsX

public int[] triPointsX
DOCUMENT ME!


triPointsY

public int[] triPointsY
DOCUMENT ME!


gain

public final double gain
DOCUMENT ME!

See Also:
Constant Field Values

lastvd

public double lastvd
DOCUMENT ME!

Constructor Detail

OpAmpElement

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

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

OpAmpElement

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

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

dump

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

Overrides:
dump in class CircuitElement
Returns:
DOCUMENT ME!

nonLinear

public boolean nonLinear()
DOCUMENT ME!

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

getPower

public double getPower()
DOCUMENT ME!

Overrides:
getPower in class CircuitElement
Returns:
DOCUMENT ME!

setSize

public void setSize(int s)
DOCUMENT ME!

Parameters:
s - DOCUMENT ME!

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

getPost

public java.awt.Point getPost(int n)
DOCUMENT ME!

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

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!

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class CircuitElement

doStep

public void doStep()
DOCUMENT ME!

Overrides:
doStep in class CircuitElement

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!

hasGroundConnection

public boolean hasGroundConnection(int n1)
DOCUMENT ME!

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

getVoltageDiff

public double getVoltageDiff()
DOCUMENT ME!

Overrides:
getVoltageDiff in class CircuitElement
Returns:
DOCUMENT ME!

getDumpType

public int getDumpType()
DOCUMENT ME!

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