public interface IBrakes
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.
|
double getSpeedReduction(java.lang.Double excertedForce)
excertedForce
- the value of the force which is applied
to the break.boolean reportIfBroken(double threshold)