TrafficSim/app/src/main/java/de/hems/trafficsim/VehicleTimeRecord.java
2020-10-29 13:37:08 +01:00

28 lines
599 B
Java

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