Skip to content

logger.gaml

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

logger.gaml is a species that stores all the informations for export purposes.

  • Attributes.

    • time_step (float): this is the time slot value, all the data collected by the logger during a day are divided in time slots.
    • late_times_by_transports_modes_during_day (map<string, map<string,SortedMap>>): stores all the informations about late delays. The first key is a string corresponding to the day time when the data is collected, this key is computed by getKey. The second key is the concerned transport name.
    • speed_by_transports_modes_during_day (map<string, map<string,SortedMap>>): stores all the informations about transports speeds. The first key is a string corresponding to the day time when the data is collected, this key is computed by getKey. The second key is the transport name.
    • road_occupations_ratios_during_day (map<string,SortedMap>): stores all the informations about roads occupation. The key is a string corresponding to the day time when the data is collected, this key is computed by getKey.
    • bus_waiting_during_day (map<string,SortedMap>): stores all the informations about individuals waiting at stations for a bus. The key is a string corresponding to the day time when the data is collected, this key is computed by getKey.
  • Reflex

    • void getRoadStats (void): reflex triggered each time_step, this reflex captures the roads occupation ratios if they have at least a transport on them.
    • void saveDataCSV (void): reflex triggered at the end of a day, this reflex save in multiple CSV files, agregated data about its attributes. The files are saved in a new directory dataset+"/output_data/.
  • Action

    • void addDelayTime (string transport_type, float add_time, float delay): action called by Transport in endTrip, adds delay in late_times_by_transports_modes_during_day.
    • void addSpeed (string transport_type, float add_time, float speed): action called by Transport in endTrip, adds speed in late_times_by_transports_modes_during_day.
    • void addOccupationRatio (float add_time, float occup_ratio): action called by getRoadStats reflex, adds occup_ratio in road_occupations_ratios_during_day.
    • void addStationWaiting (float add_time, float waiting_time): action called by Individual, adds waiting_time in_bus_waiting_during_day_.
    • string getStatsBuff (list<float> data_list): return a string containing all the main statistics computed on data_list.
    • string getKey (float add_time): return a key for attributes maps. This key points towards the correct time slot according add_time.
  • Experiment

Clone this wiki locally