|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IParkingVehicle
This object holds the extra data required by a vehicle when it parks
| Method Summary | |
|---|---|
double |
arriveCount()
Returns the countdown value, in seconds, when the vehicle is arriving |
void |
arriveCount(double c)
[Internal use only] |
void |
atBay(boolean atBay,
boolean facingForward)
[Internal use only] |
ILane |
bayLane()
If the vehicle has decided the lane in which it will park, this returns a reference to that lane |
ILink |
bayLink()
If the vehicle has decided the lane in which it will park, this returns a reference to the link for that lane |
void |
choose(ILane lane,
int laneBay,
int zoneBay)
[Internal use only] |
boolean |
chosen()
Returns true if the vehicle has chosen a bay |
int |
chosenLaneBay()
Returns the lane-index of the chosen bay (not the same as the zone-index) |
int |
chosenZoneBay()
Returns the zone-index of the chosen bay (not the same as the lane-index) |
void |
departAndUnpark()
[Internal use only] |
double |
departCount()
Returns the countdown value, in seconds, when the vehicle is departing |
void |
departCount(double c)
[Internal use only] |
double |
dwellTime()
Returns the recorded dwell time, in seconds, increased on every time step |
void |
dwellTime(double t)
[Internal use only] |
boolean |
enteringForward()
Returns true if this vehicle will park face-in |
boolean |
frozen()
Returns true if this vehicle is parked, or not quite ready to leave |
boolean |
isAtBay()
Returns true if the vehicle has arrived at the chosen parking bay |
int |
lanePopularity()
Returns the current lane popularity during parking search |
void |
lanePopularity(int lanePopularity,
ILink[] targetLinks)
[Internal use only] |
boolean |
leaving()
Returns true if the vehicle is leaving the bay |
int |
leavingZoneBay()
Returns a positive value when the vehicle is leaving the parking lane |
void |
leavingZoneBay(int b)
[Internal use only] |
IZone |
nearestTaxiRank(IVehicle v,
ILink link,
IZone current)
Find the nearest taxi rank zone, excluding the given zone, which can be null |
IOccupant |
occupant()
Returns a reference to the occupant of this vehicle. |
void |
park()
[Internal use only] |
boolean |
parked()
Returns true if the vehicle has arrived and completed the parking manoeuvre |
IParkingLane |
parkingLane()
If the vehicle has decided the lane in which it will park, this returns a reference to the parkingLane object for that lane |
boolean |
readyToLeave(IPerson person)
Returns true when a vehicle is available to be used by a person walking towards the parking lane. |
void |
resetChoice()
[Internal use only] |
ILink[] |
targetLinks()
[Internal use only] |
void |
unpark()
[Internal use only] |
Boolean |
uTurnOnDeparture()
Returns true if this vehicle will make a u-turn on departure, false if it will not, or null if this has not yet been decided |
void |
uTurnOnDeparture(Boolean b)
[Internal use only] |
IVehicle |
vehicle()
Returns a reference to the vehicle |
void |
whileParked()
[Internal use only] |
| Method Detail |
|---|
IVehicle vehicle()
IOccupant occupant()
IParkingLane parkingLane()
ILink bayLink()
ILane bayLane()
boolean isAtBay()
boolean chosen()
boolean parked()
boolean leaving()
boolean readyToLeave(IPerson person)
boolean enteringForward()
int chosenLaneBay()
int chosenZoneBay()
int leavingZoneBay()
double dwellTime()
double arriveCount()
double departCount()
int lanePopularity()
void lanePopularity(int lanePopularity,
ILink[] targetLinks)
void choose(ILane lane,
int laneBay,
int zoneBay)
void atBay(boolean atBay,
boolean facingForward)
void park()
void unpark()
void whileParked()
void resetChoice()
void arriveCount(double c)
void departCount(double c)
void dwellTime(double t)
void departAndUnpark()
void leavingZoneBay(int b)
ILink[] targetLinks()
IZone nearestTaxiRank(IVehicle v,
ILink link,
IZone current)
boolean frozen()
void uTurnOnDeparture(Boolean b)
Boolean uTurnOnDeparture()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||