source: proiecte/ptvs/src/vnsim/vehicular/simulator/Personality.java @ 31

Last change on this file since 31 was 31, checked in by (none), 14 years ago
File size: 1.6 KB
Line 
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 ***********************************************************************************/
6package vnsim.vehicular.simulator;
7
8public 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}
Note: See TracBrowser for help on using the repository browser.