GoalWithValue

GoalReferences
public abstract class GoalWithValue : Goal
A goal with associated text label.

Constructors

GoalWithValue

#
protected GoalWithValue(
nomen,
icon,
value,
params Edge[]
referencedEdges
)

Fields

_edges

protected readonly Edge[] _edges
inherited fromGoal

Properties

EdgeCount

Gets the number of edges this goal is associated with.
public int EdgeCount { get; }
inherited fromGoal

Icon

Gets the icon of this goal.
public IIcon Icon { get; }
inherited fromGoal

Id

Gets the id of this goal.
public Guid Id { get; }
inherited fromGoal

Nomen

Gets the description of this goal.
public Nomen Nomen { get; }
inherited fromGoal

Value

#
Gets the value linked to this goal.
public Value Value { get; }

Methods

Apply

Apply this constraint to a system.
public abstract bool Apply(
iteration
Constraint system iteration within which to solve this goal.
)
inherited fromGoal
Success state.

DependsOnId

Test whether this goal depends on a specific node or scalar id.
public bool DependsOnId(
nodeId
)
inherited fromGoal

Edge

Gets the referenced edge at the given index.
public Edge Edge(
index
)
inherited fromGoal

RemoveReferents

Return a modified goal in response to the removal of node or edge referents. By default this method will return null if one of the referenced edges occurs in the map.
public virtual Goal RemoveReferents()
inherited fromGoal

ResolveCoordinate

#
protected bool ResolveCoordinate(
iteration,
out Point2d
value
)

ResolveNumber

#
protected bool ResolveNumber(
iteration,
out double
value
)

WithValue

#
Return a goal of this same type with a new value.
public abstract GoalWithValue WithValue(
newValue
)