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.

28 lines
603B

  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. public float getTimestep() {
  10. return timestep;
  11. }
  12. protected int id;
  13. protected float position;
  14. protected float velocity;
  15. protected float timestep;
  16. public VehicleTimeRecord(int id, float position, float velocity, float timestep) {
  17. this.id = id;
  18. this.position = position; //needed???
  19. this.velocity = velocity;
  20. this.timestep = timestep;
  21. }
  22. }