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: 22.1.413.0 (22.1.413.0)
public static bool AreConstraintsSatisfied(
	IList<StoppingConditionConstraintEvaluator> constraints,
	ITimeBasedState state,
	WhenToCheckConstraint whenCheckIsOccurring


Type: System.Collections.GenericIListStoppingConditionConstraintEvaluator
The constraints to check.
Type: AGI.Foundation.CoordinatesITimeBasedState
The state to check.
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