Click or drag to resize

TrackingArchiveTEntity Class

The base for classes that archive tracking data.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Tracking
Assembly:  AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public abstract class TrackingArchive<TEntity> : IDisposable
where TEntity : class, IEntityIdentifier, IEntityLastUpdate

Type Parameters

TEntity
The type of entity to be archived.

The TrackingArchiveTEntity type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyContext
Gets the context for which to archives entities.
Public propertyIsRunning
Gets a value indicating whether or not the archiver is currently archiving changes to entities in the Context.
Public propertyMaximumQueueLength
Gets or sets the maximum length of the queue of committed transactions to be archived. If transactions are committed at a higher rate than they can be archived, the length of the queue will grow. When it reaches this maximum length, committing threads will block until the archiver catches up. Setting this value too high will result in excessive memory usage. Changes to this value while the archiver IsRunning will not take effect until it is restarted.
Public propertyPrimitivePropertyComponents
Gets a list of the primitive components of the properties for this entity type. Each property in Properties will correspond to one or more properties in this collection. For example, a property in Properties of type JulianDate might have two properties in this collection: an integer called "Day" and a double called "SecondsOfDay". The exact relationship between Properties and this collection is dictated by the TypeArchivers being used by this archive.
Public propertyProperties
Gets a list of archived properties for this entity type. There is one property in this collection for each property in the entity's EntitySchemaTEntity.
Public propertyTypeArchivers
Gets the collection of TrackingTypeArchivers that is used to archive the properties of entities. The returned instance should be considered read-only. Attempts to modify the collection of archivers will result in an ObjectFrozenException.
Top
Methods
  NameDescription
Protected methodArchiveEntities
Archives a set of entities.
Public methodClear
Clears the contents of the archive.
Public methodDispose
Releases any resources associated with this instance.
Protected methodDispose(Boolean)
Releases any resources associated with this instance.
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 methodGetArchivedData(JulianDate, JulianDate, Int32, String)
Retrieves archived properties for all entities over the provided time period.
Public methodGetArchivedData(Object, JulianDate, JulianDate, Int32, String)
Retrieves archived properties for the provided entity over the provided time period.
Public methodGetArchivedInterval
Gets the overall interval that exists in the archive for any entity.
Public methodGetArchivedInterval(Object)
Gets the overall interval that exists in the archive for the specified entity identifier.
Protected methodGetArchivedPrimitivePropertyComponents(IEnumerableArchivedProperty, JulianDate, JulianDate, Int32)
Retrieves archived primitive property components for all entities over the provided time period.
Protected methodGetArchivedPrimitivePropertyComponents(Object, IEnumerableArchivedProperty, JulianDate, JulianDate, Int32)
Retrieves archived primitive property components for the provided entity over the provided time period.
Protected methodGetEntityPrimitivePropertyComponents
Fills an array with the archived properties of an entity.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMotionT(Object, JulianDate, JulianDate, String)
Gets time-varying data, such as position and velocity, from the archive.
Public methodGetMotionT(Object, JulianDate, JulianDate, Int32, String)
Gets time-varying data, such as position and velocity, from the archive.
Public methodGetMotionT, TDerivative(Object, JulianDate, JulianDate, String)
Gets time-varying data, such as position and velocity, from the archive.
Public methodGetMotionT, TDerivative(Object, JulianDate, JulianDate, Int32, String)
Gets time-varying data, such as position and velocity, from the archive.
Public methodGetOrientations(Object, JulianDate, JulianDate)
Gets a DateMotionCollectionT, TDerivative representing the archived orientation, rotational velocity and rotational acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetOrientations(Object, JulianDate, Int32)
Gets a DateMotionCollectionT, TDerivative representing the archived orientation, rotational velocity and rotational acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetOrientations(Object, JulianDate, JulianDate, Int32)
Gets a DateMotionCollectionT, TDerivative representing the archived orientation, rotational velocity and rotational acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetPositions(Object, JulianDate, JulianDate)
Gets a DateMotionCollectionT representing the archived position, velocity and acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetPositions(Object, JulianDate, Int32)
Gets a DateMotionCollectionT representing the archived position, velocity and acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetPositions(Object, JulianDate, JulianDate, Int32)
Gets a DateMotionCollectionT representing the archived position, velocity and acceleration of the specified entity beginning at the specified time and lasting for the specified duration.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStartWriting
Starts the archiver. After this method is called, all updates to entities in the Context will be archived.
Public methodStopWriting
Stops the archiver. After this method is called, updates to entities in the Context will no longer be archived. This method does not return until the current queue of updates to archive has been processed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWaitForArchiveQueue
Waits for the currently queued transactions to be archived before returning. Additional committed transactions may be queued while waiting and these will NOT be waited upon.
Protected methodWritingShutdown
Protected methodWritingStartup
Top
See Also