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.

26 lines
537B

  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 float position;
  13. protected float velocity;
  14. protected float timestep;
  15. public VehicleTimeRecord(float position, float velocity, float timestep) {
  16. this.position = position;
  17. this.velocity = velocity;
  18. this.timestep = timestep;
  19. }
  20. }