Constructor and Description |
---|
DuperBrakes() |
Modifier and Type | Method and Description |
---|---|
double |
getSpeedReduction(java.lang.Double excertedForce)
Reduces the speed by a factor based on the input
parameter.
|
boolean |
reportIfBroken(double threshold)
Reports if the brakes are broken.
|
public double getSpeedReduction(java.lang.Double excertedForce)
getSpeedReduction
in interface IBrakes
excertedForce
- the value of the force which is applied
to the break.public boolean reportIfBroken(double threshold)
IBrakes
reportIfBroken
in interface IBrakes