com.shabarshin.jemul
Class jeGate

java.lang.Object
  |
  +--com.shabarshin.jemul.jeComponent
        |
        +--com.shabarshin.jemul.jeGate
Direct Known Subclasses:
jeGateAND, jeGateNAND, jeGateNOR, jeGateOR

public class jeGate
extends jeComponent

Class of common gate for jEmul.

See Also:
jeComponent

Field Summary
 
Fields inherited from class com.shabarshin.jemul.jeComponent
flag_pullup, name, pin, PIN_GND, PIN_INPUT, PIN_NC, PIN_OPEN, PIN_OUTPUT, PIN_UNKNOWN, PIN_VCC, val, VAL_FALSE, VAL_TRUE, VAL_UNKNOWN, VAL_ZSTATE
 
Constructor Summary
jeGate(java.lang.String nam, int ni)
           
 
Method Summary
 int getInputs()
          Get number of inputs.
 int getOutputs()
          Get number of outputs.
 int step()
          Do step of emulation.
 
Methods inherited from class com.shabarshin.jemul.jeComponent
error, getBool, getLogic, getName, getPin, getPins, getVal, isInput, isOutput, pullUp, setBool, setLogic, setPin, setVal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

jeGate

public jeGate(java.lang.String nam,
              int ni)
Method Detail

getInputs

public int getInputs()
Description copied from class: jeComponent
Get number of inputs.

Overrides:
getInputs in class jeComponent
Returns:
number of input pins
See Also:
jeComponent.pin

getOutputs

public int getOutputs()
Description copied from class: jeComponent
Get number of outputs.

Overrides:
getOutputs in class jeComponent
Returns:
number of output pins
See Also:
jeComponent.pin

step

public int step()
Description copied from class: jeComponent
Do step of emulation.

Specified by:
step in class jeComponent
Returns:
0 if Ok or Error code