PropagationStateConverterAdjustStateFromElement Method |
Adjust the subset of the overall raw state corresponding to this element to new values.
Namespace:
AGI.Foundation.Propagators
Assembly:
AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public bool AdjustStateFromElement(
string elementID,
double[] overallRawState,
Motion<double[]> stateElementValues
)
Public Function AdjustStateFromElement (
elementID As String,
overallRawState As Double(),
stateElementValues As Motion(Of Double())
) As Boolean
public:
bool AdjustStateFromElement(
String^ elementID,
array<double>^ overallRawState,
Motion<array<double>^> stateElementValues
)
member AdjustStateFromElement :
elementID : string *
overallRawState : float[] *
stateElementValues : Motion<float[]> -> bool
Parameters
- elementID
- Type: SystemString
The string identifying which propagation state element to use when converting the raw state.
(AuxiliaryStateElementConverter does not output its element as a Motion
of double arrays, so auxiliary state element IDs are not supported.) - overallRawState
- Type: SystemDouble
The overall raw state to adjust. - stateElementValues
- Type: AGI.FoundationMotionDouble
The new values and derivatives for the requested element
represented as an array. To obtain an instance of this array, call GetElementFromState(String, Double).
Return Value
Type:
BooleanTrue if the update was successful. Otherwise, if the specified new element values did
not contain enough derivatives or there was some other problem completing the update, this returns false.
See Also