26 рядки
537 B
Java
26 рядки
537 B
Java
package de.hems.trafficsim;
|
|
|
|
public class VehicleTimeRecord {
|
|
public float getPosition() {
|
|
return position;
|
|
}
|
|
|
|
public float getVelocity() {
|
|
return velocity;
|
|
}
|
|
|
|
public float getTimestep() {
|
|
return timestep;
|
|
}
|
|
|
|
protected float position;
|
|
protected float velocity;
|
|
protected float timestep;
|
|
|
|
public VehicleTimeRecord(float position, float velocity, float timestep) {
|
|
this.position = position;
|
|
this.velocity = velocity;
|
|
this.timestep = timestep;
|
|
}
|
|
}
|