Package | Description |
---|---|
agi.foundation.stoppingconditions |
Contains types for stopping propagation when various events occur.
|
Modifier and Type | Method and Description |
---|---|
static WhenToCheckConstraint |
WhenToCheckConstraint.getDefault()
Get the enum constant that is considered to be the default.
|
static WhenToCheckConstraint |
WhenToCheckConstraint.getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
WhenToCheckConstraint |
StoppingConditionConstraintEvaluator.getWhenToCheck()
Gets when to check the constraint (when an event is detected or exactly found).
|
WhenToCheckConstraint |
StoppingConditionConstraint.getWhenToCheck()
Gets when to check this constraint (when a stop is detected or found).
|
static WhenToCheckConstraint |
WhenToCheckConstraint.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WhenToCheckConstraint[] |
WhenToCheckConstraint.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
StoppingConditionConstraintEvaluator.areConstraintsSatisfied(List<StoppingConditionConstraintEvaluator> constraints,
ITimeBasedState state,
WhenToCheckConstraint whenCheckIsOccurring)
Loop through the
Constraints (get )
and see if their constraints are satisfied by the
state given when a relevant event is detected. |
void |
StoppingConditionConstraint.setWhenToCheck(WhenToCheckConstraint value)
Sets when to check this constraint (when a stop is detected or found).
|
Constructor and Description |
---|
DelegateStoppingConditionConstraint(ConstraintSatisfiedCallback constraintSatisfactionCallback,
WhenToCheckConstraint whenToCheck)
Initializes a new instance.
|
DurationStoppingConditionConstraint(Duration threshold,
Duration tolerance,
WhenToCheckConstraint whenToCheck,
InequalityCondition inequality,
boolean useAbsoluteValue)
Initializes a new instance.
|
JulianDateStoppingConditionConstraint(JulianDate threshold,
Duration tolerance,
WhenToCheckConstraint whenToCheck,
InequalityCondition inequality)
Initializes a new instance.
|
ScalarStoppingConditionConstraint(Scalar scalar,
double threshold,
double tolerance,
WhenToCheckConstraint whenToCheck,
InequalityCondition inequality,
boolean useAbsoluteValue)
Initializes a new instance.
|
StoppingConditionConstraint(WhenToCheckConstraint whenToCheck)
Initializes a new instance.
|
ThresholdStoppingConditionConstraint(double threshold,
double tolerance,
WhenToCheckConstraint whenToCheck,
InequalityCondition inequality,
boolean useAbsoluteValue)
Initializes a new instance.
|
ValueInStateStoppingConditionConstraint(String elementIdentification,
double threshold,
double tolerance,
WhenToCheckConstraint whenToCheck,
InequalityCondition inequality,
boolean useAbsoluteValue)
Initializes a new instance.
|