Class Numeric

java.lang.Object
ch.epfl.cs107.play.signal.Numeric
All Implemented Interfaces:
Signal

public final class Numeric extends Object implements Signal
Implementation of numeric signal The signal has a constant integer numerical value
  • Constructor Details

    • Numeric

      public Numeric(int value)
      Default Numeric Signal constructor
      Parameters:
      value - (int): constant value of this signal
  • Method Details

    • getIntensity

      public float getIntensity(float t)
      Description copied from interface: Signal
      Intensity getter for given time
      Specified by:
      getIntensity in interface Signal
      Parameters:
      t - (float): the time at which we want the intensity
      Returns:
      (float): signal intensity, usually between 0.0 and 1.0