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

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.GateElement
          extended by org.jscience.physics.electricity.circuitry.elements.OrGateElement
Direct Known Subclasses:
NorGateElement, XorGateElement

public class OrGateElement
extends GateElement

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.physics.electricity.circuitry.elements.GateElement
FLAG_SMALL, gheight, gsize, gwidth, gwidth2, inGates, inPosts, inputCount, lastOutput, linePointsX, linePointsY, outnx, outny, outpx, outpy, pcirclex, pcircley, triPointsX, triPointsY
 
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
OrGateElement(int xx, int yy)
          Creates a new OrGateElement object.
OrGateElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new OrGateElement object.
 
Method Summary
 boolean calcFunction()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 java.lang.String getGateName()
          DOCUMENT ME!
 void setPoints()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.elements.GateElement
doStep, draw, dump, getConnection, getEditInfo, getInfo, getInput, getPost, getPostCount, getVoltageSourceCount, hasGroundConnection, isInverting, setEditValue, setSize, stamp
 
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, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, isWire, move, movePoint, nonLinear, 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
 

Constructor Detail

OrGateElement

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

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

OrGateElement

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

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

getGateName

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

Specified by:
getGateName in class GateElement
Returns:
DOCUMENT ME!

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

calcFunction

public boolean calcFunction()
DOCUMENT ME!

Specified by:
calcFunction in class GateElement
Returns:
DOCUMENT ME!

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!