|
123456789101112131415161718192021222324252627 |
- 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 float timestep;
-
- public VehicleTimeRecord(int id, float position, float velocity, float timestep) {
- this.id = id;
- this.position = position; //needed???
- this.velocity = velocity;
- this.timestep = timestep;
- }
- }
|