Class LogicInput

java.lang.Object
  |
  +--LogicGate
        |
        +--LogicInput

class LogicInput
extends LogicGate


Fields inherited from class LogicGate
calculated, equivGate, gateType, id, inputOne, inputTwo, lastOutputValue, outputs, outputValue, sequential
 
Constructor Summary
(package private) LogicInput(java.lang.Object equivGate)
           
 
Method Summary
 void evaluate()
          calculate simply tells all the gates that the input gate outputs to to calculate, since it doesn't need to do any calculating itself
 void setOutputValue(boolean newOutput)
           
 
Methods inherited from class LogicGate
addInput, addOutput, calcOutputs, calculate, determineSequential, getOutputValue, printInfo, removeInput, removeOutput, resetCalculated, returnOutput, unlinkGates
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicInput

LogicInput(java.lang.Object equivGate)
Method Detail

evaluate

public void evaluate()
calculate simply tells all the gates that the input gate outputs to to calculate, since it doesn't need to do any calculating itself
Overrides:
evaluate in class LogicGate

setOutputValue

public void setOutputValue(boolean newOutput)