_PublicServices

Module Contents

Classes

PublicServices

class _PublicServices.PublicServices(users: trasmapy.users._Users.Users)

Bases: trasmapy._SimUpdatable.SimUpdatable

property fleets: dict[str, trasmapy.publicservices._Fleet.Fleet]
createFleet(fleetId: str, fleetRoute: Union[trasmapy.users._Route.Route, None], vehicleType: trasmapy.users._VehicleType.VehicleType, fleetStops: list[trasmapy.users.ScheduledStop.ScheduledStop], period: float, start: float = 0, end: float = INVALID_DOUBLE_VALUE) trasmapy.publicservices._Fleet.Fleet

Create a fleet. If the fleetRoute is None, a Route is calculated from the given fleetStops. If the fleetRoute is None, the list of FleetStops can’t be empty.

getFleet(fleetId: str) trasmapy.publicservices._Fleet.Fleet
_doSimulationStep(*args, step: int, time: float) None