TrafficSim/app/src/main/java/de/hems/trafficsim/VehicleTimeRecord.java
Waetschker Daniel (uib17511) ee79997e3e implement average method
remove time step
rename vtrList
2020-11-02 17:19:07 +01:00

22 строки
458 B
Java

package de.hems.trafficsim;
public class VehicleTimeRecord {
public float getPosition() {
return position;
}
public float getVelocity() {
return velocity;
}
protected int id;
protected float position;
protected float velocity;
public VehicleTimeRecord(int id, float position, float velocity) {
this.id = id;
this.position = position; //needed???
this.velocity = velocity;
}
}