# builders.domain.scheduling.resource_type

Domain specification

Domain

# WithResourceTypes

A domain must inherit this class if some of its resources are resource types.

# get_resource_types_names WithResourceTypes

get_resource_types_names(
  self
) -> list[str]

Return the names (string) of all resource types as a list.

# _get_resource_types_names WithResourceTypes

_get_resource_types_names(
  self
) -> list[str]

Return the names (string) of all resource types as a list.

# WithoutResourceTypes

A domain must inherit this class if it only uses resource types.

# get_resource_types_names WithResourceTypes

get_resource_types_names(
  self
) -> list[str]

Return the names (string) of all resource types as a list.

# _get_resource_types_names WithResourceTypes

_get_resource_types_names(
  self
) -> list[str]

Return the names (string) of all resource types as a list.

# WithResourceUnits

A domain must inherit this class if some of its resources are resource units.

# get_resource_type_for_unit WithResourceUnits

get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# get_resource_units_names WithResourceUnits

get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.

# _get_resource_type_for_unit WithResourceUnits

_get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# _get_resource_units_names WithResourceUnits

_get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.

# SingleResourceUnit

A domain must inherit this class if there is no allocation to be done (i.e. there is a single resource).

# get_resource_type_for_unit WithResourceUnits

get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# get_resource_units_names WithResourceUnits

get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.

# _get_resource_type_for_unit WithResourceUnits

_get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# _get_resource_units_names WithResourceUnits

_get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.

# WithoutResourceUnit

A domain must inherit this class if it only uses resource types.

# get_resource_type_for_unit WithResourceUnits

get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# get_resource_units_names WithResourceUnits

get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.

# _get_resource_type_for_unit WithResourceUnits

_get_resource_type_for_unit(
  self
) -> dict[str, str]

Return a dictionary where the key is a resource unit name and the value a resource type name. An empty dictionary can be used if there are no resource unit matching a resource type.

# _get_resource_units_names WithResourceUnits

_get_resource_units_names(
  self
) -> list[str]

Return the names (string) of all resource units as a list.