ScheduledStop

Module Contents

Classes

ScheduledStop

class ScheduledStop.ScheduledStop(stop: trasmapy.network._Stop.Stop, duration: Union[float, str] = 0.0, until: Union[float, str] = INVALID_DOUBLE_VALUE, stopParams: list[trasmapy.users.StopType.StopType] = [])
property stop: trasmapy.network._Stop.Stop
property stopParams: list[trasmapy.users.StopType.StopType]
property stopTypes: list[trasmapy.users.StopType.StopType]
property duration: float
property until: float
hasDuration() bool
hasUntilTime() bool
shiftUntilTime(timeReference: float) None

Changes the until time of the ScheduledStop to start counting after the given timeReference. Useful when establishing public transport schedules: the until time of transports after the first should start counting on the moment it has departed.

_timeStr2Sec(timeStr: str) float
_checkParamsValidaty()