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
andNUM_AMBULANCES
are at least necessary. Seemain.py
for parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
AMBULANCE_BASE_LOCATIONS
is at least necessary. It is based onAMBULANCE_BASE_LOCATIONS_FILE
. Seemain.py
and the input data section on the ELASPY website for explanations.
- Returns:
list[Ambulance] – A list of initialized ambulances.