Click or drag to resize

StoppingConditionEvaluator.GetNextSampleSuggestion Method

Gets the next step that the thing that is sampling this StoppingConditionEvaluator should take. The returned Duration must be signed correctly. Override this method if this particular stopping condition has some sense of how it should be sampled, or if it somehow knows at what time it's extrema or thresholds will occur at.

Namespace:  AGI.Foundation.StoppingConditions
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public virtual Duration GetNextSampleSuggestion(
	JulianDate lastNominalDateSampled,
	Duration otherSuggestedStep,
	ITimeBasedState state,
	IntegrationSense direction
)

Parameters

lastNominalDateSampled
Type: AGI.Foundation.Time.JulianDate
The last date that was sampled.
otherSuggestedStep
Type: AGI.Foundation.Time.Duration
The current step that the propagator will take if no other stopping condition will return a smaller value. This is returned in the base implementation of this method.
state
Type: AGI.Foundation.Coordinates.ITimeBasedState
The state at the lastNominalDateSampled.
direction
Type: AGI.Foundation.NumericalMethods.IntegrationSense
The integration direction.

Return Value

Type: Duration
The correctly signed, smallest in magnitude, step that this stopping condition thinks it should take.
See Also