クラスと同名の変数名をvalueに置き換えました
1 parent 53440a7 commit 20bdc1f702cd3cdd7061c611213e3d1cbb376efa
k-fujii authored on 16 Dec 2021
Showing 15 changed files
View
37
AlgebraicDataflowArchitectureModel/msrc/Acceleration.java 0 → 100644
import java.util.*;
 
public class Acceleration {
private Map.Entry<Double, Double> force;
private double mass;
private Velocity velocity;
private Onground onground;
private Map.Entry<Double, Double> value;
public void updateForce(Map.Entry<Double, Double> force) {
this.force = force;
Map.Entry<Double, Double> 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<Double, Double> 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<Double, Double> getValue() {
return value;
}
}
View
17
AlgebraicDataflowArchitectureModel/msrc/Clear.java 0 → 100644
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;
}
}
View
AlgebraicDataflowArchitectureModel/msrc/Force.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Gameover.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Ground.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/JumpGame.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Mass.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Move.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Onground.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Pair.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Position.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Time.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/msrc/Velocity.java 0 → 100644
View
AlgebraicDataflowArchitectureModel/src/algorithms/JavaCodeGenerator.java
View
AlgebraicDataflowArchitectureModel/src/algorithms/JavaMethodBodyGenerator.java