uxsim.TaxiHandler.TripRequest¶
- class uxsim.TaxiHandler.TripRequest(W, H, orig, dest, depart_time, name=None, attribute=None)[source]¶
A class representing a trip request (or travelers, passengers, cargo, etc.)
Initializes a trip request.
- Parameters:
W (World) – The world object.
H (TaxiHandler) – The TaxiHandler object.
orig (str | Node) – The origin node of the trip request.
dest (str | Node) – The destination node of the trip request.
depart_time (float) – The time at which the trip request departs.
name (any, optional) – The name of the trip request. Default is None.
attribute (any) – An optional attribute of the trip request. This can be used to store any information by users’ need.
- __init__(W, H, orig, dest, depart_time, name=None, attribute=None)[source]¶
Initializes a trip request.
- Parameters:
W (World) – The world object.
H (TaxiHandler) – The TaxiHandler object.
orig (str | Node) – The origin node of the trip request.
dest (str | Node) – The destination node of the trip request.
depart_time (float) – The time at which the trip request departs.
name (any, optional) – The name of the trip request. Default is None.
attribute (any) – An optional attribute of the trip request. This can be used to store any information by users’ need.
Methods
__init__
(W, H, orig, dest, depart_time[, ...])Initializes a trip request.
The event of arriving at the destination.
The event of getting on a taxi.