Interface Signal

All Known Subinterfaces:
Logic
All Known Implementing Classes:
And, LogicGate, LogicNumber, MultipleAnd, Nand, Not, Numeric, Or, Sawtooth, Sine, Square, Triangle, Xor

public interface Signal
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    Epsilon value to compare floating value
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getIntensity(float t)
    Intensity getter for given time
    default boolean
    is(Signal other, float t)
    Check if this signal and other given signal are equivalent for given time t
  • Field Details

    • EPSILON

      static final float EPSILON
      Epsilon value to compare floating value
      See Also:
  • Method Details

    • getIntensity

      float getIntensity(float t)
      Intensity getter for given time
      Parameters:
      t - (float): the time at which we want the intensity
      Returns:
      (float): signal intensity, usually between 0.0 and 1.0
    • is

      default boolean is(Signal other, float t)
      Check if this signal and other given signal are equivalent for given time t
      Parameters:
      other - (Signal): given other signal. Not null
      t - (float): given time
      Returns:
      (boolean) : true if the signal are equivalent