routes module

class jinete.models.routes.Route(vehicle, stops=None)[source]

Bases: jinete.models.abc.Model

__init__(vehicle, stops=None)[source]

The constructor of the class.

append_planned_trip(planned_trip)[source]
clone(idx=0)[source]
Return type

jinete.models.routes.Route

property current_arrival_time
Return type

float

property current_departure_time
Return type

float

property current_position
Return type

Position

property current_stop
Return type

jinete.models.stops.Stop

property deliveries
Return type

Iterator[PlannedTrip]

property distance
Return type

float

property duration
Return type

float

feasible
property feasible_planned_trips
Return type

bool

property feasible_stops
Return type

bool

property first_departure_time
Return type

float

property first_stop
Return type

jinete.models.stops.Stop

flush()[source]
property identifier
insert_stop(stop)[source]
Return type

jinete.models.stops.Stop

insert_stop_at(idx, stop)[source]
Return type

jinete.models.stops.Stop

property last_departure_time
Return type

float

property last_position
Return type

Position

property last_stop
Return type

jinete.models.stops.Stop

property loaded
property loaded_planned_trips
Return type

Iterator[PlannedTrip]

property loaded_trips
Return type

Iterator[Trip]

property loaded_trips_count
Return type

int

property pickups
Return type

Iterator[PlannedTrip]

property planned_trips
Return type

Iterator[PlannedTrip]

property positions
Return type

Iterator[Position]

remove_stop_at(idx)[source]
Return type

jinete.models.stops.Stop

remove_trip(trip)[source]
Return type

None

stops
property transit_time
Return type

float

property trips
Return type

Iterator[Trip]

vehicle
property vehicle_identifier
Return type

Optional[str]

property waiting_time
Return type

float

class jinete.models.routes.RouteCloner(route, idx=0)[source]

Bases: object

__init__(route, idx=0)[source]

Initialize self. See help(type(self)) for accurate signature.

clone()[source]
Return type

jinete.models.routes.Route

property idx
Return type

int

map_delivery(stop, planned_trip)[source]
map_pickup(stop, planned_trip)[source]
property mapper
Return type

Dict[PlannedTrip, PlannedTrip]

property stops
Return type

List[Stop]

property vehicle
Return type

Vehicle