sampo.generator.pipeline.cluster#
Overview#
|
Return answer, if addition work will be added |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
Creates works on the development of the field on one object, i.e. a group of boreholes |
Functions#
- sampo.generator.pipeline.cluster._add_addition_work(probability: float, rand: random.Random | None = None) bool#
Return answer, if addition work will be added
- sampo.generator.pipeline.cluster._get_roads(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, dist: float, rand: random.Random | None = None) dict[str, sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_engineering_preparation(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, boreholes_count: int, rand: random.Random | None = None) sampo.schemas.graph.GraphNode#
- sampo.generator.pipeline.cluster._get_power_lines(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, dist_line: float, dist_high_line: float | None = None, rand: random.Random | None = None) list[sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_pipe_lines(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, pipe_dists: list[float], rand: random.Random | None = None) list[sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_boreholes_equipment_group(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, group_ind: int, borehole_count: int, rand: random.Random | None = None) list[sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_boreholes(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, group_ind: int, borehole_count: int, rand: random.Random | None = None) list[sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_boreholes_equipment_general(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, pipes_count: int, masts_count: int, rand: random.Random | None = None) list[sampo.schemas.graph.GraphNode]#
- sampo.generator.pipeline.cluster._get_handing_stage(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, borehole_count: int, rand: random.Random | None = None) sampo.schemas.graph.GraphNode#
- sampo.generator.pipeline.cluster.get_cluster_works(root_node: sampo.schemas.graph.GraphNode, cluster_name: str, pipe_nodes_count: int, pipe_net_count: int, light_masts_count: int, borehole_counts: list[int], roads: dict[str, sampo.schemas.graph.GraphNode] | None = None, rand: random.Random | None = None)#
Creates works on the development of the field on one object, i.e. a group of boreholes
- Parameters:
root_node – The parent node of the work graph for this object
cluster_name – object name
pipe_nodes_count – Number of pipeline segments from this field to other fields
pipe_net_count – Number of pipes connecting boreholes
light_masts_count – Number of floodlight masts
borehole_counts – Number of boreholes
roads – If the object is not connected to the central node, the road to which it is connected, otherwise None
rand – Number generator with a fixed seed, or None for no fixed seed
- Returns: