Package ch.epfl.cs107.play.signal
Class Numeric
java.lang.Object
ch.epfl.cs107.play.signal.Numeric
- All Implemented Interfaces:
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:SignalIntensity getter for given time- Specified by:
getIntensityin interfaceSignal- Parameters:
t- (float): the time at which we want the intensity- Returns:
- (float): signal intensity, usually between 0.0 and 1.0
-