Class SynthesizedTrackable<T>
Representation for a single typed property in a piece of Synthesized MARS data
Inherited Members
Namespace: Unity.MARS.Data.Synthetic
Syntax
public abstract class SynthesizedTrackable<T> : SynthesizedTrackable, ISimulatable, ISynthesizedData, IProvidesTraits<bool>, IProvidesTraits, IUsesMARSTrackableData<T> where T : IMRTrackable
Type Parameters
Name | Description |
---|---|
T | The type of data being represented by this trait |
Methods
AddSynthData(Int32)
Add the data for this SynthesizedTrackable to the MARS database
Declaration
public override sealed void AddSynthData(int dataID)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dataID | The data ID associated with this trackable object |
Overrides
GetData()
Calculates and retrieves the most up-to-date piece of data representing this trackable object
Declaration
public abstract T GetData()
Returns
Type | Description |
---|---|
T | The data representing this trackable object |
GetProvidedTraits()
Get the traits provided by this SynthesizedTrackable
Declaration
public virtual TraitDefinition[] GetProvidedTraits()
Returns
Type | Description |
---|---|
TraitDefinition[] | The provided traits |
Implements
RemoveSynthData(Int32)
Remove the data for this SynthesizedTrackable from the MARS database
Declaration
public override sealed void RemoveSynthData(int dataID)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dataID | The data ID associated with this trackable object |
Overrides
UpdateSynthData()
Update the data in the MARS database associated with this trackable object
Declaration
public override sealed void UpdateSynthData()