Skip to content

Station.gaml

Loïc SADOU edited this page Sep 21, 2020 · 5 revisions

Station.gaml is the main station species. This species contains the commons behaviours of all stations (independant from the public transport that collect the station).

  • Attributes

    • id (string): refers to GTFS stops stop_id. It is initialized during GTFS data import process.
    • name (string): refers to GTFS stops stop_name. It is initialized during GTFS data import process.
    • lines (list<TransportLine>): stores all the transports lines which have trips that collect this station. This attributes is particulary convenient when individuals search which station they can join starting from an other. It is initialized during GTFS data import process.
    • waiting_passengers (map<string, list<list>>): stores all the passengers waiting at this station. The map key is a TransportLine id, it corresponds to the line the passengers want to use. The list<list> stores all the passengers who are waiting for a certain transport line, the structure is like [[Passenger waiting_passenger, Station destination], [...], ...].
  • Reflex

  • Action

    • void waitAtStation (Passenger p, string transportLine_id, Station destination): action mainly used by individuals when they want to take a public transport.
  • Experiment

Clone this wiki locally