Iteration

public sealed class Iteration : IIteration
A single iteration in a solver process.

Constructors

Iteration

#
public Iteration(ConstraintSystem system, Resolver resolver, CancellationToken token)
system (ConstraintSystem)
resolver (Resolver)
token (CancellationToken)

Properties

Explicit

IIteration.Token

#
Cancellation token for this iteration.
Token

ParentSystem

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

Resolver

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

Methods

FindNode

#
public 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.
FindNode

FindScalar

#
public 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 node cannot be found, a failure message will be appended to this iteration
Indexed scalar or null if scalar cannot be found.
FindScalar
Explicit

IIteration.SetFailure

#
void IIteration.SetFailure(string message)
message (string)
SetFailure
Explicit

IIteration.SetNode

#
void IIteration.SetNode(int index, Point2d location)
index (int)
location (Point2d)
SetNode
Explicit

IIteration.SetScalar

#
void IIteration.SetScalar(int index, double value)
index (int)
value (double)
SetScalar
Explicit

IIteration.TrySetEdge

#
bool IIteration.TrySetEdge(Edge edge, Arc arc)
edge (Edge)
arc (Arc)
TrySetEdge
Explicit

IIteration.TrySetEdge

#
bool IIteration.TrySetEdge(Edge edge, Circle circle)
edge (Edge)
circle (Circle)
TrySetEdge
Explicit

IIteration.TrySetEdge

#
bool IIteration.TrySetEdge(Edge edge, Line line)
edge (Edge)
line (Line)
TrySetEdge