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

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.AndGateElement
Direct Known Subclasses:
NandGateElement

public class AndGateElement
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
AndGateElement(int xx, int yy)
          Creates a new AndGateElement object.
AndGateElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new AndGateElement 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

AndGateElement

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

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

AndGateElement

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

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

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

getGateName

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

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

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!