ambulance_simulation.ambulance_initialization#

ambulance_simulation.ambulance_initialization(env: Environment, SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) list[ambulance.Ambulance]#

Initializes the ambulances and saves these in a list.

Parameters:
  • env (sp.core.Environment) – The SimPy environment.

  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameters ENGINE_TYPE, BATTERY_CAPACITY and NUM_AMBULANCES are at least necessary. See main.py for parameter explanations.

  • SIMULATION_DATA (dict[str, Any]) – The simulation data. AMBULANCE_BASE_LOCATIONS is at least necessary. It is based on AMBULANCE_BASE_LOCATIONS_FILE. See main.py and the input data section on the ELASPY website for explanations.

Returns:

list[Ambulance] – A list of initialized ambulances.