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.

arrive_at_dest()

The event of arriving at the destination.

get_on_taxi()

The event of getting on a taxi.

arrive_at_dest()[source]

The event of arriving at the destination. This is called via Vehicle.event_node

get_on_taxi()[source]

The event of getting on a taxi. This is called via Vehicle.event_node