IIteration

References
public interface IIteration

Properties

ParentSystem

#
ConstraintSystem ParentSystem { get; }
Gets the system which originated this stepwise solution.

Resolver

#
Resolver Resolver { get; }
Gets the resolver to be used for expressions.

Token

#
CancellationToken Token { get; }
Cancellation token for this iteration.

Methods

FindNode

#
IndexedNode FindNode(Guid nodeId, Goal sourceGoal = null)
Find a node within the system.
nodeId (Guid)Id of node.
sourceGoal (Goal = null)Goal which requests this information. If not null and the node cannot be found, a failure message will be appended to this iteration
Indexed node or null if node cannot be found.

FindScalar

#
IndexedScalar FindScalar(Guid scalarId, Goal sourceGoal = null)
Find a scalar within the system.
scalarId (Guid)Id of scalar.
sourceGoal (Goal = null)Goal which requests this information. If not null and the scalar cannot be found, a failure message will be appended to this iteration
Indexed scalar or null if scalar cannot be found.

SetFailure

#
void SetFailure(string message)
Set a failure message.
message (string)

SetNode

#
void SetNode(int index, Point2d location)
Set a new target location for a node.
index (int)
location (Point2d)

SetScalar

#
void SetScalar(int index, double value)
Set a new target value for a scalar.
index (int)
value (double)

TrySetEdge

#
bool TrySetEdge(Edge edge, Arc arc)
Try and set the geometry of an edge.
edge (Edge)
arc (Arc)

TrySetEdge

#
bool TrySetEdge(Edge edge, Circle circle)
Try and set the geometry of an edge.
edge (Edge)
circle (Circle)

TrySetEdge

#
bool TrySetEdge(Edge edge, Line line)
Try and set the geometry of an edge.
edge (Edge)
line (Line)