You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
458B

  1. package de.hems.trafficsim;
  2. public class VehicleTimeRecord {
  3. public float getPosition() {
  4. return position;
  5. }
  6. public float getVelocity() {
  7. return velocity;
  8. }
  9. protected int id;
  10. protected float position;
  11. protected float velocity;
  12. public VehicleTimeRecord(int id, float position, float velocity) {
  13. this.id = id;
  14. this.position = position; //needed???
  15. this.velocity = velocity;
  16. }
  17. }