# builders.domain.scheduling.resource_renewability
Domain specification
# MixedRenewable
A domain must inherit this class if the resource available are non-renewable and renewable.
# all_tasks_possible MixedRenewable
all_tasks_possible(
self,
state: State
) -> bool
Return a True is for each task there is at least one mode in which the task can be executed, given the resource configuration in the state provided as argument. Returns False otherwise. If this function returns False, the scheduling problem is unsolvable from this state. This is to cope with the use of non-renable resources that may lead to state from which a task will not be possible anymore.
# get_resource_renewability MixedRenewable
get_resource_renewability(
self
) -> dict[str, bool]
Return a dictionary where the key is a resource name (string) and the value whether this resource is renewable (True) or not (False).
# _get_resource_renewability MixedRenewable
_get_resource_renewability(
self
) -> dict[str, bool]
Return a dictionary where the key is a resource name (string) and the value whether this resource is renewable (True) or not (False).
# RenewableOnly
A domain must inherit this class if the resource available are ALL renewable.
# all_tasks_possible MixedRenewable
all_tasks_possible(
self,
state: State
) -> bool
Return a True is for each task there is at least one mode in which the task can be executed, given the resource configuration in the state provided as argument. Returns False otherwise. If this function returns False, the scheduling problem is unsolvable from this state. This is to cope with the use of non-renable resources that may lead to state from which a task will not be possible anymore.
# get_resource_renewability MixedRenewable
get_resource_renewability(
self
) -> dict[str, bool]
Return a dictionary where the key is a resource name (string) and the value whether this resource is renewable (True) or not (False).
# _get_resource_renewability MixedRenewable
_get_resource_renewability(
self
) -> dict[str, bool]
Return a dictionary where the key is a resource name (string) and the value whether this resource is renewable (True) or not (False).