package
0.0.0-20210605150337-5682995e1956
Repository: https://github.com/fafeitsch/open-traffic-sandbox.git
Documentation: pkg.go.dev

# Functions

Init loads the scenario from the provided directory and parses it.
MustParseTime haves nearly identical to ParseTime.
NewTicker creates and starts a new ticker.
ParseTime creates a new Time from a string.

# Structs

Assignment is a task for a Bus to do.
Bus describes a vehicle can can load passengers.
BusPosition describes the position of a certain bus at the current moment.
Line represents a predefined path and departures times for buses.
Ticker is similar to time.Ticker as it contains a channel that produces a Time in specified intervals.
WayPoint is a part of an assignment.

# Interfaces

BusModel is a model designed for all bus stuff.
Coordinate is an interface providing latitude and longitude data.
LineModel is model designed for line management.
Model represent the static data of a scenario.

# Type aliases

BusId is used to identify a Bus.
LineId is used to identify a Line.
Publisher is a function taking care to broadcast BusPosition updates.
RouteService is a function capable of computing detailed waypoints between the provided waypoints.
StopId is used to identify a Stop.
Time specifies the time of the day in milliseconds.