|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBehaviour
The behaviour of a person making a trip (vehicle driver or person)
| Field Summary | |
|---|---|
static String |
NAME_PREFIX
The name pattern for new objects |
static double |
STD_HEADWAY
The standard driving target headway between vehicles, in seconds |
static double |
STD_LANE_CHANGE_TIME
The standard time for lane changing, in seconds |
static double |
STD_MINIMUM_GAP
The standard minimum gap between vehicles, in metres |
static double |
STD_PARK_DURATION
The standard time duration for parking, in hours. |
static double |
STD_REACTION_TIME
The standard reaction time for drivers, in seconds |
static double |
STD_SAFETY_MARGIN
The standard safety factor used for minimum stopping distances, etc. |
static IBehaviour[] |
ZERO
A static zero-length array, created for convenience, and to save memory |
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
double |
aggression()
Aggression: a value between 0 and 1 |
double |
awareness()
Awareness: a value between 0 and 1 |
boolean |
canCycle()
Return true if a person of this behaviour will consider taking a cycle |
boolean |
canDrive()
Return true if a drive-park option is available for this behaviour. |
boolean |
canDropOff()
Return true if a drop-off option is available for this behaviour. |
boolean |
canPark()
Deprecated. use canDrive() |
boolean |
canRide()
Return true if a person of this behaviour can ride on public transport. |
boolean |
canTaxi()
Return true if a person of this behaviour will consider taking a taxi |
boolean |
canWalk()
Return true if a person of this behaviour can walk. |
double |
costBase(TravelMode mode)
The (perceived) base cost of a trip for agent of this behaviour, using the given mode of travel |
double |
costOfDistance(TravelMode mode)
The (perceived) cost of distance for an agent of this behaviour, using the given mode of travel. |
double |
costOfPrice()
The (perceived) cost of price for an agent of this behaviour. |
double |
costOfStop(TravelMode mode)
The (perceived) cost of a stop for an agent of this behaviour, using the given mode of travel. |
double |
costOfTime(TravelMode mode)
The (perceived) cost of time for an agent of this behaviour, using the given mode of travel. |
void |
costs(TravelMode mode,
double costOfTime,
double costOfDistance,
double costOfStop,
double costBase)
|
double |
driveSpreading()
Route spreading for driving, expressed as a value between 0 and 1. |
boolean |
dynamicRouting()
Return true if agents with this behaviour receive dynamic route cost updates to allow in-journey route recalculation |
double |
familiarity()
Familiarity: a value between 0 and 1 |
int |
index()
The 0-based index of this behaviour |
boolean |
isOptimist()
Returns true if this behaviour uses "optimistic" parking search, that is, the belief that there will be an available space in the most popular area. |
double |
laneChangeGap()
The minimum acceptable gap time for lane changing |
boolean |
matchedVehicle()
Deprecated. true if the (non-taxi) vehicle selected for drive-park must have this behaviour too |
double |
meanHeadway()
A value for mean headway, used in some of the car following algorithms. |
double |
meanReactionTime()
A value for mean reaction time, used in some of the car following algorithms. |
double |
minimumGap()
The minimum gap in metres between vehicles. |
boolean |
mustPickUp()
Return true if a person of this behaviour must be picked up at a parking zone. |
double |
parkDurationHours()
The parking time in hours, used to calculate the parking price for this behaviour |
IDivision |
parkingDivision()
A division of vehicle types to use when selecting from parked vehicles. |
double |
patience()
Patience: a value between 0 and 1 |
double |
routeSpreading()
Deprecated. use driveSpreading() or walkSpreading() |
double |
safetyMargin()
A multiplier used to increase the safe stopping distance, and as a consequence the gap required for lane changing |
double |
speedCompliance()
Speed Compliance: a value between 0 and N, where 1.0 equates to driving at exactly the speed limit |
boolean |
suitableParkingVehicle(IVehicleType vtype)
Returns true if the given type of vehicle is suitable for a trip for this behaviour that starts or ends with parking |
double |
variability()
The variability of: (speed) compliance reaction time gap etc defined in terms of std. |
double |
walkSpreading()
Route spreading for walking, expressed as a value between 0 and 1. |
| Methods inherited from interface com.azalient.api.file.StoreRecordRW |
|---|
canRename, rename, store |
| Methods inherited from interface com.azalient.api.file.RecordR |
|---|
extraSet, finished, isApplicable, isEditable, set |
| Methods inherited from interface com.azalient.api.a.tables.IRecord |
|---|
name |
| Methods inherited from interface com.azalient.api.file.RecordW |
|---|
extraCols, extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile |
| Field Detail |
|---|
static final IBehaviour[] ZERO
static final String NAME_PREFIX
static final double STD_MINIMUM_GAP
static final double STD_HEADWAY
static final double STD_REACTION_TIME
static final double STD_LANE_CHANGE_TIME
static final double STD_SAFETY_MARGIN
static final double STD_PARK_DURATION
| Method Detail |
|---|
int index()
double speedCompliance()
double aggression()
double awareness()
double familiarity()
double patience()
double minimumGap()
double meanHeadway()
double meanReactionTime()
double safetyMargin()
double costOfTime(TravelMode mode)
double costOfDistance(TravelMode mode)
double costOfStop(TravelMode mode)
double costBase(TravelMode mode)
double costOfPrice()
void costs(TravelMode mode,
double costOfTime,
double costOfDistance,
double costOfStop,
double costBase)
double routeSpreading()
double driveSpreading()
double walkSpreading()
double laneChangeGap()
double parkDurationHours()
boolean canWalk()
boolean canRide()
boolean canPark()
boolean canDrive()
boolean canDropOff()
boolean mustPickUp()
boolean canTaxi()
boolean canCycle()
boolean matchedVehicle()
boolean suitableParkingVehicle(IVehicleType vtype)
double variability()
boolean dynamicRouting()
IDivision parkingDivision()
The %age values are used when
boolean isOptimist()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||