Click or drag to resize

StoppingConditionConstraintEvaluatorAreConstraintsSatisfied Method

Loop through the constraints on a stopping condition and see if their constraints are satisfied by the state given when a relevant event is detected.

Namespace:  AGI.Foundation.StoppingConditions
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static bool AreConstraintsSatisfied(
	IList<StoppingConditionConstraintEvaluator> constraints,
	ITimeBasedState state,
	WhenToCheckConstraint whenCheckIsOccurring
)

Parameters

constraints
Type: System.Collections.GenericIListStoppingConditionConstraintEvaluator
The constraints to check.
state
Type: AGI.Foundation.CoordinatesITimeBasedState
The state to check.
whenCheckIsOccurring
Type: AGI.Foundation.StoppingConditionsWhenToCheckConstraint
Specifies when this method was called during propagation. Only the constraints with the matching setting will be checked.

Return Value

Type: Boolean
if all of the constraints that should be checked will work with the state, and propagation should stop. Otherwise, , and propagation should continue.
See Also