flatland.core.resource_map module

flatland.core.resource_map module#

class flatland.core.resource_map.ResourceMap[source]#

Bases: Generic[ConfigurationType, ResourceType]

Resource Map stores the single resource required to be in the configuration (i.e. to be in the cell or level-free crossing cell in grid world, resp. on the edge in graph world).

get_resource(configuration: ConfigurationType | None) ResourceType | None[source]#