sampo.generator.pipeline.cluster#

Overview#

Function#

_add_addition_work(probability, rand)

Return answer, if addition work will be added

_get_roads(parents, cluster_name, dist, rand)

-

_get_engineering_preparation(parents, cluster_name, boreholes_count, rand)

-

_get_power_lines(parents, cluster_name, dist_line, dist_high_line, rand)

-

_get_pipe_lines(parents, cluster_name, pipe_dists, rand)

-

_get_boreholes_equipment_group(parents, cluster_name, group_ind, borehole_count, rand)

-

_get_boreholes_equipment_shared(parents, cluster_name, rand)

-

_get_boreholes(parents, cluster_name, group_ind, borehole_count, rand)

-

_get_boreholes_equipment_general(parents, cluster_name, pipes_count, masts_count, rand)

-

_get_handing_stage(parents, cluster_name, borehole_count, rand)

-

get_cluster_works(root_node, cluster_name, pipe_nodes_count, pipe_net_count, light_masts_count, borehole_counts, roads, rand)

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_equipment_shared(parents: list[sampo.schemas.graph.GraphNode], cluster_name: str, 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: