docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetricDefinition

    The metric definition holds of the associated metadata for a metric.

    Inheritance
    object
    DataModelElement
    MetricDefinition
    ObjectCountMetricDefinition
    RenderedObjectInfoMetricDefinition
    Implements
    IMessageProducer
    Inherited Members
    DataModelElement.id
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.DataModel
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public class MetricDefinition : DataModelElement, IMessageProducer

    Constructors

    MetricDefinition(string, string)

    Creates a new metric definition.

    Declaration
    public MetricDefinition(string id, string description)
    Parameters
    Type Name Description
    string id

    The ID of the metric definition.

    string description

    The description of the metric.

    MetricDefinition(string, string, string)

    Creates a new metric definition.

    Declaration
    public MetricDefinition(string modelType, string id, string description)
    Parameters
    Type Name Description
    string modelType

    The type of the metric.

    string id

    The ID of the metric definition.

    string description

    The description of the metric.

    Properties

    description

    The description of the metric.

    Declaration
    public string description { get; }
    Property Value
    Type Description
    string

    modelType

    Type of the data object

    Declaration
    public override string modelType { get; }
    Property Value
    Type Description
    string
    Overrides
    DataModelElement.modelType

    Methods

    IsValid()

    Is the component valid?

    Declaration
    public override bool IsValid()
    Returns
    Type Description
    bool

    Is the component valid?

    Overrides
    DataModelElement.IsValid()

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public override void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Overrides
    DataModelElement.ToMessage(IMessageBuilder)

    Implements

    IMessageProducer
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)