Skip to content

Passenger.gaml

Loïc SADOU edited this page Sep 29, 2020 · 3 revisions

Passenger.gaml is a species that represents a person on board in a transport. The main goal for this species is to collect data about trips and transports. The main part of passengers behaviour is implemented in sub species Individual. Inherits from EventListener.

  • Attributes.

    • current_car (Car): the car where the passenger actually is. If the passenger is not in a car then current_car = nil.
    • current_bike (Bike): the bike where the passenger actually is. If the passenger is not in a bike then current_bike = nil.
    • current_walk (Walk): the legs where the passenger actually is. If the passenger is not in possession of legs then current_walk = nil.
    • car_place (point): point towards where the possessed car is parked.
    • bike_place (point): point towards where the possessed bike is parked.
    • status (string): can take the values : "go to trip","passenger","driving","arrived","activity",nil. This attributes shows what the passenger is actually doing.
    • times_spent_in_jammed_roads (list <float>): stores times spend in jams during trips done.
    • time_start_waiting_at_station (float): the time where the passenger started to wait at a station.
    • last_start_time (float): last trip start.
    • last_theoric_trip_time (float): last theoric trip time computed.
    • last_late_time (float): last late time computed.
    • times_in_transport (map<string,list<pair<float,float>>>): stores times spend in different transports.
  • Reflex

  • Action

    • void addTimeSpentInJams (float time_in_jams): action called by transports to add times in times_spent_in_jammed_roads.
    • void addTransportTravelTime (Transport t, float practical_travel_time, float theoric_travel_time): action called by transports to add times in times_in_transport.
  • Experiment

Clone this wiki locally