Click or drag to resize

BasicState Class

An IAdjustableState that can hold any data type or motions. This type will directly cast the stored items to the type requested, which can cause exceptions to be thrown. Creating your own specialized ITimeBasedState for your needs will avoid that, as well as may result in better performance and flexibility.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.CoordinatesBasicState

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public class BasicState : IAdjustableState, ITimeBasedState, 
	IThreadAware, ICloneWithContext

The BasicState type exposes the following members.

Constructors
  NameDescription
Public methodBasicState
Initializes a new instance.
Protected methodBasicState(BasicState, CopyContext)
Initializes a new instance as a copy of an existing instance.
Top
Properties
  NameDescription
Public propertyAvailableElements
Gets the names of all of the elements in this state.
Public propertyCurrentDate
Gets or sets the JulianDate that this state is valid.
Public propertyIsThreadSafe
Gets a value indicating whether the methods on this instance are safe to call from multiple threads simultaneously.
Top
Methods
  NameDescription
Public methodAddStateElementMotionT
Adds a Motion{T} element to this state. Calling code is responsible for ensuring that the motion is of a type that this state can store.
Public methodAddStateElementValueT
Adds an element to this state. Calling code is responsible for ensuring that the value is of a type that this state can store.
Public methodClone
Clones this object using the specified context.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMotionT
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValueT
Returns the requested value of the requested element.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodModifyMotionT
Public methodModifyValueT
Modifies the elementIdentification in this instance of ITimeBasedState with the newValue.
Public methodRemoveStateElement
Removes the specified element and its data from this state.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also