koi_net.infra.build_artifact
Classes
|
Used by the |
- class koi_net.infra.build_artifact.BuildArtifact(assembler)[source]
Bases:
objectUsed by the
Assemblerto determine the initialization, start and stop order of components using a graph solver.- Parameters:
assembler (Assembler)
- build_init_graph()[source]
Builds initialization dependency graph and component type map. Results stored in
init_graphandcomp_types.Graph representation is an adjacency list: the key is a component name, and the value is a tuple containing names of the depedencies.
- build_start_graph()[source]
Builds start dependency graph, results stored in
start_graph.
- build_stop_graph()[source]
Builds stop dependency graph, results stored in
stop_graph.
- 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]