koi_net.infra.build_artifact
Classes
|
- class koi_net.infra.build_artifact.BuildArtifact(assembler)[source]
Bases:
object- Parameters:
assembler (Assembler)
- build_init_graph()[source]
Builds dependency graph and component type map.
Graph representation is an adjacency list: the key is a component name, and the value is a tuple containing names of the depedencies.
- build_stop_order(start_order)[source]
Builds component stop order.
Reverse of start order, only including components with a stop method. NOTE: Components defining a stop method MUST also define a start method.
- Return type:
list[str]- Parameters:
start_order (list[str])
- comp_dict: dict[str, Any]
- init_graph: dict[str, set[str]]
- init_order: list[str]
- start_graph: dict[str, set[str]]
- start_order: list[str]
- stop_graph: dict[str, set[str]]
- stop_order: list[str]