Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. }