diff --git a/src/Acceleration.java b/src/Acceleration.java deleted file mode 100644 index 3bccc68..0000000 --- a/src/Acceleration.java +++ /dev/null @@ -1,25 +0,0 @@ -import java.util.*; - -public class Acceleration { - private double mass; - private Map.Entry force; - private Velocity velocity; - private Onground onground; - private Map.Entry acceleration; - public void updateMass(double mass) { - this.mass = mass; - acceleration = (this.onground.getOnground() ? new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0) : new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass))); - velocity.updateAcceleration(acceleration); - } - public void updateForce(Map.Entry force) { - this.force = force; - acceleration = (this.onground.getOnground() ? new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0) : new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass))); - velocity.updateAcceleration(acceleration); - } - public Acceleration(Velocity velocity, Onground onground) { - this.onground = onground; - } - public Map.Entry getAcceleration() { - return acceleration; - } -} \ No newline at end of file