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
607B

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