|
- package de.hems.trafficsim;
-
- public class Vehicle {
- protected float position;
- protected float curVelocity;
- protected float maxVelocity;
-
- public void setForerunner(Vehicle forerunner) {
- this.forerunner = forerunner;
- }
-
- protected Vehicle forerunner;
-
- public float getPosition() {
- return position;
- }
-
- public float getCurVelocity() {
- return curVelocity;
- }
-
- protected float brakeProp;
-
- public Vehicle(float position, float maxVelocity, float brakeProp) {
- this.position = position;
- this.maxVelocity = maxVelocity;
- this.brakeProp = brakeProp;
- this.curVelocity = 0;
- this.forerunner = null;
- }
-
- public void timeElapse(float timeStep) {
-
- }
- }
|