adorn.orchestrator.orchestrator module
Coordinator between different collections of types.
- class adorn.orchestrator.orchestrator.Orchestrator
Bases:
objectCoordinate actions between a collection of
Unit- contains(cls)
Check if
Typeexists in theOrchestrator- Parameters
cls (Type) – a type that is being checked to see if it exists in the
Orchestrator- Raises
NotImplementedError – This method must be overriden by a subclass
- Return type
bool
- from_obj(cls, obj)
Generate an instance of type cls from obj
- Parameters
cls (Type) – the type
objwould be converted intoobj (Any) – an instance to be converted into type
cls
- Raises
NotImplementedError – This method must be overriden by a subclass
- Return type
Any
- get(cls)
Finds the
Unitassociated with cls- Parameters
cls (Type) – a type that you want the associated
Unitof- Raises
NotImplementedError – This method must be overriden by a subclass
- Return type
- type_check(cls, obj)
Check if obj can be converted to type of cls
- Parameters
cls (Type) – the type
objwould be converted intoobj (Any) – an instance to be converted into type
cls
- Raises
NotImplementedError – This method must be overriden by a subclass
- Return type
- units: List[adorn.unit.unit.Unit]
a collection of collection of types