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

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

public class CounterElement
extends ChipElement

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.physics.electricity.circuitry.elements.ChipElement
bits, clockPointsX, clockPointsY, csize, cspc, cspc2, FLAG_SMALL, lastClock, pins, rectPointsX, rectPointsY, SIDE_E, SIDE_N, SIDE_S, SIDE_W, sizeX, sizeY
 
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
CounterElement(int xx, int yy)
          Creates a new CounterElement object.
CounterElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new CounterElement object.
 
Method Summary
 void execute()
          DOCUMENT ME!
 java.lang.String getChipName()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 int getVoltageSourceCount()
          DOCUMENT ME!
 boolean needsBits()
          DOCUMENT ME!
 void setupPins()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.elements.ChipElement
doStep, drag, draw, drawChip, dump, getConnection, getInfo, getPost, hasGroundConnection, reset, setCurrent, setPoints, setSize, setVoltageSource, stamp
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, canViewInScope, doAdjust, doDots, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getCurrent, getDumpClass, getEditInfo, getInternalNodeCount, getNode, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, isWire, move, movePoint, nonLinear, setBbox, setCircuitFrame, setEditValue, setNode, setNodeVoltage, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, startIteration, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterElement

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

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

CounterElement

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

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

needsBits

public boolean needsBits()
DOCUMENT ME!

Overrides:
needsBits in class ChipElement
Returns:
DOCUMENT ME!

getChipName

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

Overrides:
getChipName in class ChipElement
Returns:
DOCUMENT ME!

setupPins

public void setupPins()
DOCUMENT ME!

Specified by:
setupPins in class ChipElement

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

getVoltageSourceCount

public int getVoltageSourceCount()
DOCUMENT ME!

Specified by:
getVoltageSourceCount in class ChipElement
Returns:
DOCUMENT ME!

execute

public void execute()
DOCUMENT ME!

Overrides:
execute in class ChipElement

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!