class_hems.HEMS

class_hems.HEMS(
    callsign,
    callsign_group,
    vehicle_type,
    category,
    registration,
    summer_start,
    winter_start,
    summer_end,
    winter_end,
    servicing_schedule,
    resource_id=None,
    summer_season=None,
)

The HEMS class

This class defines a HEMS resource

Methods

Name Description
hems_resource_on_shift Function to determine whether the HEMS resource is within
unavailable_due_to_service Returns logical value denoting whether the HEMS resource is currently

hems_resource_on_shift

class_hems.HEMS.hems_resource_on_shift(hour, month)

Function to determine whether the HEMS resource is within its operational hours

unavailable_due_to_service

class_hems.HEMS.unavailable_due_to_service(current_dt)

Returns logical value denoting whether the HEMS resource is currently unavailable due to being serviced