ambulance.Ambulance.check_base_reachable#

Ambulance.check_base_reachable(SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) bool#

Checks whether the base is reachable with the current battery level.

Parameters:
  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter PRINT is at least necessary. Note that methods that are called within this method may require more parameters. See main.py for parameter explanations.

  • SIMULATION_DATA (dict[str, Any]) – The simulation data. Methods that are called within this method require data. See these methods for explanations.

Returns:

bool – Whether the base is reachable or not.