pygrenade_vx.common.PartitionedVertex
-
class
pygrenade_vx.common.PartitionedVertex Bases:
pygrenade_common.Vertex-
__init__(*args, **kwargs) Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(*args, **kwargs)Initialize self.
Get execution instance on executor.
Get invariant of vertex which is required to be equal across its strong component.
set_execution_instance_on_executor(self, value)Set execution instance on executor.
valid_edge_from(self, source, edge)Get whether the edge from the source vertex to this vertex is valid.
valid_edge_to(self, target, edge)Get whether the edge to the target vertex from this vertex is valid.
-
class
StrongComponentInvariant Bases:
pygrenade_common.Vertex.StrongComponentInvariant-
copy(self: pygrenade_common.PartitionedVertex.StrongComponentInvariant) → pygrenade_common.Vertex.StrongComponentInvariant
-
property
execution_instance_on_executor
-
move(self: pygrenade_common.PartitionedVertex.StrongComponentInvariant) → pygrenade_common.Vertex.StrongComponentInvariant
-
-
get_execution_instance_on_executor(self: pygrenade_common.PartitionedVertex) → Optional[pygrenade_common.ExecutionInstanceOnExecutor] Get execution instance on executor.
-
get_strong_component_invariant(self: pygrenade_common.PartitionedVertex) → pygrenade_common.Vertex.StrongComponentInvariant Get invariant of vertex which is required to be equal across its strong component.
-
set_execution_instance_on_executor(self: pygrenade_common.PartitionedVertex, value: Optional[pygrenade_common.ExecutionInstanceOnExecutor]) → None Set execution instance on executor. If a derived class is only conditionally partitionable, this method can be overwritten to throw an error if the vertex is not partitionable, but a non-null value is given.
-
valid_edge_from(self: pygrenade_common.PartitionedVertex, source: pygrenade_common.Vertex, edge: pygrenade_common.Edge) → bool Get whether the edge from the source vertex to this vertex is valid. This is the case if the execution instance transition matches the expectation when the source vertex is a partitioned vertex (in addition to the common requirements of the Vertex).
-
valid_edge_to(self: pygrenade_common.PartitionedVertex, target: pygrenade_common.Vertex, edge: pygrenade_common.Edge) → bool Get whether the edge to the target vertex from this vertex is valid. This is the case if the execution instance transition matches the expectation when the target vertex is a partitioned vertex (in addition to the common requirements of the Vertex).
-