diff --git a/AlgebraicDataflowArchitectureModel/msrc/Acceleration.java b/AlgebraicDataflowArchitectureModel/msrc/Acceleration.java deleted file mode 100644 index c99c0dc..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Acceleration.java +++ /dev/null @@ -1,37 +0,0 @@ -import java.util.*; - -public class Acceleration { - private Map.Entry force; - private double mass; - private Velocity velocity; - private Onground onground; - private Map.Entry value; - public void updateForce(Map.Entry force) { - this.force = force; - Map.Entry temp_l4; - if(this.onground.getValue()) { - temp_l4 = new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0); - } else { - temp_l4 = new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass)); - } - acceleration = temp_l4; - velocity.updateAcceleration(value); - } - public void updateMass(double mass) { - this.mass = mass; - Map.Entry temp_l5; - if(this.onground.getValue()) { - temp_l5 = new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0); - } else { - temp_l5 = new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass)); - } - acceleration = temp_l5; - velocity.updateAcceleration(value); - } - public Acceleration(Velocity velocity, Onground onground) { - this.onground = onground; - } - public Map.Entry getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Clear.java b/AlgebraicDataflowArchitectureModel/msrc/Clear.java deleted file mode 100644 index a7225a7..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Clear.java +++ /dev/null @@ -1,17 +0,0 @@ -import java.util.*; - -public class Clear { - private Position position; - public Clear(Position position) { - this.position = position; - } - public boolean getValue() { - boolean temp_l0; - if((this.position.getValue().getKey()>100.0)) { - temp_l0 = true; - } else { - temp_l0 = false; - } - return temp_l0; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Force.java b/AlgebraicDataflowArchitectureModel/msrc/Force.java deleted file mode 100644 index 68e30ef..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Force.java +++ /dev/null @@ -1,16 +0,0 @@ -import java.util.*; - -public class Force { - private Acceleration acceleration; - private Map.Entry value; - public Force(Acceleration acceleration) { - this.acceleration = acceleration; - } - public void gravity(double y) { - this.force = new AbstractMap.SimpleEntry<>(0.0, y); - acceleration.updateForce(value); - } - public Map.Entry getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Gameover.java b/AlgebraicDataflowArchitectureModel/msrc/Gameover.java deleted file mode 100644 index 7b07745..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Gameover.java +++ /dev/null @@ -1,17 +0,0 @@ -import java.util.*; - -public class Gameover { - private Position position; - public Gameover(Position position) { - this.position = position; - } - public boolean getValue() { - boolean temp_l6; - if((this.position.getValue().getValue()<-(1.0))) { - temp_l6 = true; - } else { - temp_l6 = false; - } - return temp_l6; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Ground.java b/AlgebraicDataflowArchitectureModel/msrc/Ground.java deleted file mode 100644 index 249ad73..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Ground.java +++ /dev/null @@ -1,8 +0,0 @@ -import java.util.*; - -public class Ground { - private boolean value; - public boolean getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/JumpGame.java b/AlgebraicDataflowArchitectureModel/msrc/JumpGame.java deleted file mode 100644 index 65a9c29..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/JumpGame.java +++ /dev/null @@ -1,61 +0,0 @@ -import java.util.*; - -public class JumpGame { - private Time time = new Time(); - private Ground ground = new Ground(); - private Position position = new Position(ground); - private Gameover gameover = new Gameover(position); - private Onground onground = new Onground(ground,position); - private Velocity velocity = new Velocity(position,onground); - private Clear clear = new Clear(position); - private Move move = new Move(velocity); - private Acceleration acceleration = new Acceleration(velocity,onground); - private Mass mass = new Mass(acceleration); - private Force force = new Force(acceleration); - public void gravity(double y) { - this.force.gravity(y); - this.time.gravity(y); - } - public void moveY(double y) { - this.move.moveY(y); - } - public void moveX(double x) { - this.move.moveX(x); - } - public void setMass(double x) { - this.mass.setMass(x); - } - public Map.Entry getAcceleration() { - return acceleration.getAcceleration(); - } - public Map.Entry getMove() { - return move.getMove(); - } - public double getMass() { - return mass.getMass(); - } - public boolean getClear() { - return clear.getClear(); - } - public boolean getGround() { - return ground.getGround(); - } - public Map.Entry getForce() { - return force.getForce(); - } - public Map.Entry getVelocity() { - return velocity.getVelocity(); - } - public Map.Entry getPosition() { - return position.getPosition(); - } - public boolean getOnground() { - return onground.getOnground(); - } - public double getTime() { - return time.getTime(); - } - public boolean getGameover() { - return gameover.getGameover(); - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Mass.java b/AlgebraicDataflowArchitectureModel/msrc/Mass.java deleted file mode 100644 index 8ba2a79..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Mass.java +++ /dev/null @@ -1,16 +0,0 @@ -import java.util.*; - -public class Mass { - private Acceleration acceleration; - private double value; - public Mass(Acceleration acceleration) { - this.acceleration = acceleration; - } - public void setMass(double x) { - this.mass = x; - acceleration.updateMass(value); - } - public double getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Move.java b/AlgebraicDataflowArchitectureModel/msrc/Move.java deleted file mode 100644 index 0670524..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Move.java +++ /dev/null @@ -1,19 +0,0 @@ -import java.util.*; - -public class Move { - private Velocity velocity; - private Map.Entry value; - public Move(Velocity velocity) { - this.velocity = velocity; - } - public void moveY(double y) { - this.move = new AbstractMap.SimpleEntry<>(this.value.getKey(), y); - velocity.updateMove(value); - } - public void moveX(double x) { - this.move = new AbstractMap.SimpleEntry<>(x, this.value.getValue()); - } - public Map.Entry getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Onground.java b/AlgebraicDataflowArchitectureModel/msrc/Onground.java deleted file mode 100644 index 66ce751..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Onground.java +++ /dev/null @@ -1,13 +0,0 @@ -import java.util.*; - -public class Onground { - private Ground ground; - private Position position; - public Onground(Ground ground, Position position) { - this.ground = ground; - this.position = position; - } - public boolean getValue() { - return ((this.ground.getValue()==true)&&(this.position.getValue().getValue()<=0.0)); - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Pair.java b/AlgebraicDataflowArchitectureModel/msrc/Pair.java deleted file mode 100644 index 6ee4e75..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Pair.java +++ /dev/null @@ -1,12 +0,0 @@ -import java.util.*; - -public class Pair { - private double first; - private double second; - public double getFirst() { - return first; - } - public double getSecond() { - return second; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Position.java b/AlgebraicDataflowArchitectureModel/msrc/Position.java deleted file mode 100644 index 6d4133e..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Position.java +++ /dev/null @@ -1,21 +0,0 @@ -import java.util.*; - -public class Position { - private Ground ground; - private Map.Entry value; - public void updateVelocity(Map.Entry velocity) { - Map.Entry temp_l3; - if(((this.ground.getValue()==true)&&((this.value.getValue()+(0.01*velocity.getValue()))<0.0))) { - temp_l3 = new AbstractMap.SimpleEntry<>((this.value.getKey()+(0.01*velocity.getKey())), 0.0); - } else { - temp_l3 = new AbstractMap.SimpleEntry<>((this.value.getKey()+(0.01*velocity.getKey())), (this.value.getValue()+(0.01*velocity.getValue()))); - } - position = temp_l3; - } - public Position(Ground ground) { - this.ground = ground; - } - public Map.Entry getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Time.java b/AlgebraicDataflowArchitectureModel/msrc/Time.java deleted file mode 100644 index e7f6777..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Time.java +++ /dev/null @@ -1,11 +0,0 @@ -import java.util.*; - -public class Time { - private double value; - public void gravity(double y) { - this.time = (this.value+0.01); - } - public double getValue() { - return value; - } -} \ No newline at end of file diff --git a/AlgebraicDataflowArchitectureModel/msrc/Velocity.java b/AlgebraicDataflowArchitectureModel/msrc/Velocity.java deleted file mode 100644 index 5543b75..0000000 --- a/AlgebraicDataflowArchitectureModel/msrc/Velocity.java +++ /dev/null @@ -1,37 +0,0 @@ -import java.util.*; - -public class Velocity { - private Map.Entry acceleration; - private Map.Entry move; - private Position position; - private Onground onground; - private Map.Entry value; - public void updateAcceleration(Map.Entry acceleration) { - this.acceleration = acceleration; - Map.Entry temp_l1; - if((this.onground.getValue()&&(this.value.getValue()<0.0))) { - temp_l1 = new AbstractMap.SimpleEntry<>((this.value.getKey()+(0.01*acceleration.getKey())), 0.0); - } else { - temp_l1 = new AbstractMap.SimpleEntry<>((this.value.getKey()+(0.01*acceleration.getKey())), (this.value.getValue()+(0.01*acceleration.getValue()))); - } - velocity = temp_l1; - position.updateVelocity(value); - } - public void updateMove(Map.Entry move) { - this.move = move; - Map.Entry temp_l2; - if((this.onground.getValue()&&(move.getValue()>=0.0))) { - temp_l2 = move; - } else { - temp_l2 = this.value; - } - velocity = temp_l2; - position.updateVelocity(value); - } - public Velocity(Position position, Onground onground) { - this.onground = onground; - } - public Map.Entry getValue() { - return value; - } -} \ No newline at end of file