public class Bicycle
extends java.lang.Object
Constructor and Description |
---|
Bicycle(java.lang.String pedalsName,
java.lang.String breaksName,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
computeTime(double distance) |
boolean |
equals(Bicycle bicycle) |
java.lang.String |
getName() |
double |
getTimeRun() |
double |
getVelocity() |
void |
reportDetails()
Reports the information regarding a bicycle
(velocity and status)
|
boolean |
reportIfDamageExists() |
double |
setBraking(double force)
Computes the velocity of the bicycle
based on the given braking force.
|
void |
setOriginalVelocity(double originalVelocity) |
double |
setPedaling(double rate)
Computes the velocity of the bicycle
based on the pedaling rate.
|
public Bicycle(java.lang.String pedalsName, java.lang.String breaksName, java.lang.String name)
public double getVelocity()
public double getTimeRun()
public void computeTime(double distance)
public java.lang.String getName()
public void setOriginalVelocity(double originalVelocity)
public double setPedaling(double rate)
rate
- pedaling ratepublic double setBraking(double force)
force
- braking forcepublic void reportDetails()
public boolean reportIfDamageExists()
public boolean equals(Bicycle bicycle)