Click or drag to resize

PropagationStateConverterAdjustStateT Method

Adjust a subset of the overall state to new values based on the requested element.

Namespace:  AGI.Foundation.Propagators
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 19.1.398.0 (19.1.398.0)
public bool AdjustState<T>(
	string elementID,
	double[] stateToAdjust,
	Motion<T> newStateValues


Type: SystemString
The identifier specifying which element's state values to update.
Type: SystemDouble
The overall state to adjust. Remember that if modifying the InitialState, the array will be a copy and needs to be reinitialized by passing the adjusted instance of a copy to Reset(JulianDate, Double).
Type: AGI.FoundationMotionT
The new state element values for the requested element.

Type Parameters

The type corresponding to the TypeOfOutput of the requested element.

Return Value

Type: Boolean
True if the update was successful. Otherwise, if the specified new values did not contain enough derivatives or there was some other problem completing the update, this returns false.
See Also