# builders.domain.scheduling.preallocations
Domain specification
# WithPreallocations
A domain must inherit this class if there are some pre-allocations to consider.
# get_preallocations WithPreallocations
get_preallocations(
self
) -> dict[int, list[str]]
Return a dictionary where the key is the id of a task (int) and the value indicates the pre-allocated resources for this task (as a list of str)
# _get_preallocations WithPreallocations
_get_preallocations(
self
) -> dict[int, list[str]]
Return a dictionary where the key is the id of a task (int) and the value indicates the pre-allocated resources for this task (as a list of str)
# WithoutPreallocations
A domain must inherit this class if there are no pre-allocations to consider.
# get_preallocations WithPreallocations
get_preallocations(
self
) -> dict[int, list[str]]
Return a dictionary where the key is the id of a task (int) and the value indicates the pre-allocated resources for this task (as a list of str)
# _get_preallocations WithPreallocations
_get_preallocations(
self
) -> dict[int, list[str]]
Return a dictionary where the key is the id of a task (int) and the value indicates the pre-allocated resources for this task (as a list of str)