ambulance_simulation.charging_stations_initialization#
- ambulance_simulation.charging_stations_initialization(env: Environment, SIMULATION_DATA: dict[str, Any]) dict[str, dict[str, list[simpy.resources.resource.Resource | float]]] #
Initializes the charging stations dictionary.
- Parameters:
env (sp.core.Environment) – The SimPy environment.
SIMULATION_DATA (dict[str, Any]) – The simulation data.
CHARGING_STATIONS_SCENARIO
is at least necessary. It is based onCHARGING_SCENARIO_FILE
. Seemain.py
and the input data section on the ELASPY website for explanations.
- Raises:
Exception – If the index of the row does not contain “H” (hospital) or “B” (base).
- Returns:
dict – The charging station dictionary.