[31] | 1 | /************************************************************************************ |
---|
| 2 | * Copyright (C) 2008 by Politehnica University of Bucharest and Rutgers University |
---|
| 3 | * All rights reserved. |
---|
| 4 | * Refer to LICENSE for terms and conditions of use. |
---|
| 5 | ***********************************************************************************/ |
---|
| 6 | package vnsim.vehicular.simulator; |
---|
| 7 | |
---|
| 8 | public interface Personality { |
---|
| 9 | |
---|
| 10 | public double getSafetyDistance(double speed); //lower is unsafe --> braking |
---|
| 11 | public double getInfluenceDistance(double speed); //higher = no influence at all |
---|
| 12 | public double getDesiredDistance(double speed); //desired following distance |
---|
| 13 | //(less than the influence distance, more than the safety distance) |
---|
| 14 | |
---|
| 15 | //return the distance from the car BEHIND on another lane considered |
---|
| 16 | //safe, so that this driver can change lane just IN FRONT of that car |
---|
| 17 | public double getLaneChangeSafetyDistance(double mySpeed, double folSpeed); |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | //return the distance from the car IN FRONT on another lane considered |
---|
| 21 | //safe, so that this driver can change lane just BEHIND that car |
---|
| 22 | public double getLaneChangeSafetyDistanceInFront(double mySpeed, double precSpeed); |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | public double getAccelerationFreeDriving(); |
---|
| 26 | public double getAccelerationMaximumBrake(); |
---|
| 27 | public double getWantedSpeed(int roadIndex); |
---|
| 28 | |
---|
| 29 | public double getWantedSpeedInfluenced(double distanceFromIntersection, double requiredSpeed); |
---|
| 30 | |
---|
| 31 | public double getReactionTimeFreeDriving(); //[secs] |
---|
| 32 | //public double getRoadChangeSafetyDistance(double speed); |
---|
| 33 | |
---|
| 34 | public boolean estimateRoadChangePossible(double mySpeed, double otherSpeed, double myDist, double otherDist); |
---|
| 35 | |
---|
| 36 | } |
---|