Class Not

java.lang.Object
ch.epfl.cs107.play.signal.logic.LogicGate
ch.epfl.cs107.play.signal.logic.Not
All Implemented Interfaces:
Logic, Signal

public final class Not extends LogicGate
Implementation of a Logical Not gate
  • Constructor Details

    • Not

      public Not(Logic signal)
      Default constructor of logical not
      Parameters:
      signal - (Logic): signal to revert. Not null
  • Method Details

    • getIntensity

      public float getIntensity()
      Returns:
      (float) : the signal intensity, usually 0.0 or 1.0