Class DataModelElement
Parent class for all data model objects. IMessageProducer
Namespace: UnityEngine.Perception.GroundTruth.DataModel
Syntax
public abstract class DataModelElement : object, IMessageProducer
Constructors
DataModelElement(String)
Declaration
protected DataModelElement(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id |
Properties
id
The ID of the component.
Declaration
public string id { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
modelType
Declaration
public abstract string modelType { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
IsValid()
Is the component valid?
Declaration
public virtual bool IsValid()
Returns
| Type | Description |
|---|---|
| Boolean | Is the component valid? |
ToMessage(IMessageBuilder)
Convert contents int a message.
Declaration
public virtual void ToMessage(IMessageBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageBuilder | builder | The message builder that will convert the class's contents into a message |