Class MultipleAnd

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

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

    • MultipleAnd

      public MultipleAnd(Logic... signals)
      Default constructor of logical And with more than two input
      Parameters:
      signals - (Array of Logic): all signals. Not null
  • Method Details

    • getIntensity

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