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

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

public class LogicInputElement
extends SwitchElement

DOCUMENT ME!


Field Summary
 double hiV
          DOCUMENT ME!
 double loV
          DOCUMENT ME!
 
Fields inherited from class org.jscience.physics.electricity.circuitry.elements.SwitchElement
momentary, open, switchx1, switchx2, switchy1, switchy2
 
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
LogicInputElement(int xx, int yy)
          Creates a new LogicInputElement object.
LogicInputElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new LogicInputElement object.
 
Method Summary
 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 getPostCount()
          DOCUMENT ME!
 double getVoltageDiff()
          DOCUMENT ME!
 int getVoltageSourceCount()
          DOCUMENT ME!
 boolean hasGroundConnection(int n1)
          DOCUMENT ME!
 void setCurrent(int vs, double c)
          DOCUMENT ME!
 void setEditValue(int n, EditInfo ei)
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.elements.SwitchElement
calculateCurrent, drawSwitch, getConnection, isWire, mouseUp, toggle
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, canViewInScope, doAdjust, doDots, doStep, drag, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getCurrent, getDumpClass, getInternalNodeCount, getNode, getPost, getPower, getScopeUnits, getScopeValue, getVoltageSource, move, movePoint, nonLinear, reset, setBbox, setCircuitFrame, 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

hiV

public double hiV
DOCUMENT ME!


loV

public double loV
DOCUMENT ME!

Constructor Detail

LogicInputElement

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

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

LogicInputElement

public LogicInputElement(int xa,
                         int ya,
                         int xb,
                         int yb,
                         int f,
                         java.util.StringTokenizer st)
Creates a new LogicInputElement 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 SwitchElement
Returns:
DOCUMENT ME!

dump

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

Overrides:
dump in class SwitchElement
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 SwitchElement
Parameters:
g - DOCUMENT ME!

setCurrent

public void setCurrent(int vs,
                       double c)
DOCUMENT ME!

Overrides:
setCurrent in class CircuitElement
Parameters:
vs - DOCUMENT ME!
c - DOCUMENT ME!

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class SwitchElement

getVoltageSourceCount

public int getVoltageSourceCount()
DOCUMENT ME!

Overrides:
getVoltageSourceCount in class SwitchElement
Returns:
DOCUMENT ME!

getVoltageDiff

public double getVoltageDiff()
DOCUMENT ME!

Overrides:
getVoltageDiff in class CircuitElement
Returns:
DOCUMENT ME!

getInfo

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

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

hasGroundConnection

public boolean hasGroundConnection(int n1)
DOCUMENT ME!

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

getEditInfo

public EditInfo getEditInfo(int n)
DOCUMENT ME!

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

setEditValue

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

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