Constructor and Description |
---|
SimplePedal() |
Modifier and Type | Method and Description |
---|---|
double |
getSpeed(double pedalingRate)
Computes the speed by a factor based on the input
parameter.
|
boolean |
reportIfBroken()
Picks a random number in range [0,1] and if this random
number is larger than 0.5 then returns false.
|
public double getSpeed(double pedalingRate)
public boolean reportIfBroken()
reportIfBroken
in interface IPedal