linchemin.rem.route_descriptors.DescriptorsCalculatorFactory¶
- class linchemin.rem.route_descriptors.DescriptorsCalculatorFactory[source]¶
DescriptorCalculator Factory to give access to the descriptors.
Attributes:¶
- route_descriptors: a dictionary
It maps the strings representing the ‘name’ of a descriptor to the correct DescriptorCalculator subclass
- __init__()¶
Methods
__init__()get_descriptor(name)To get an instance of the specified RouteDescriptor.
get_descriptor_configuration(descriptor)To get the configuration dictionary of the selected descriptor
list_route_descriptors()List the names of all available RouteDescriptors.
register_descriptors(name)Decorator for registering a new descriptor.