Search Results for

    Show / Hide Table of Contents

    Class LevelType

    Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and MAX. True means that the value is available, false means the value is not available.

    Inheritance
    System.Object
    LevelType
    Implements
    ILevelType
    IClass
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: AasCore.Aas3_0
    Assembly: AasCore.Aas3_0.dll
    Syntax
    public class LevelType : ILevelType, IClass
    Remarks

    EXAMPLE from [IEC61360-1]: In the case of having a property which is of the LEVEL_TYPE min/max − expressing a range − only those two values need to be provided.

    This is how AAS deals with the following combinations of level types:

    • Either all attributes are false. In this case the concept is mapped to a Property and level type is ignored.
    • At most one of the attributes is set to true. In this case the concept is mapped to a Property.
    • Min and max are set to true. In this case the concept is mapped to a Range.
    • More than one attribute is set to true but not min and max only (see second case). In this case the concept is mapped to a SubmodelElementCollection with the corresponding number of Properties. Example: If attribute Min and Nom are set to true then the concept is mapped to a SubmodelElementCollection with two Properties within: min and nom. The data type of both Properties is the same.

    In the cases 2. and 4. the SemanticId of the Property or Properties within the SubmodelElementCollection needs to include information about the level type. Otherwise, the semantics is not described in a unique way. Please refer to the specification.

    Constructors

    | Improve this Doc View Source

    LevelType(Boolean, Boolean, Boolean, Boolean)

    Declaration
    public LevelType(bool min, bool nom, bool typ, bool max)
    Parameters
    Type Name Description
    System.Boolean min
    System.Boolean nom
    System.Boolean typ
    System.Boolean max

    Properties

    | Improve this Doc View Source

    Max

    Maximum of the value

    Declaration
    public bool Max { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Min

    Minimum of the value

    Declaration
    public bool Min { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Nom

    Nominal value (value as designated)

    Declaration
    public bool Nom { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Typ

    Value as typically present

    Declaration
    public bool Typ { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Accept(Visitation.IVisitor)

    Accept the visitor to visit this instance for double dispatch.

    Declaration
    public void Accept(Visitation.IVisitor visitor)
    Parameters
    Type Name Description
    Visitation.IVisitor visitor
    | Improve this Doc View Source

    Accept<TContext>(Visitation.IVisitorWithContext<TContext>, TContext)

    Accept the visitor to visit this instance for double dispatch with the context.

    Declaration
    public void Accept<TContext>(Visitation.IVisitorWithContext<TContext> visitor, TContext context)
    Parameters
    Type Name Description
    Visitation.IVisitorWithContext<TContext> visitor
    TContext context
    Type Parameters
    Name Description
    TContext
    | Improve this Doc View Source

    Descend()

    Iterate recursively over all the class instances referenced from this instance.

    Declaration
    public IEnumerable<IClass> Descend()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IClass>
    | Improve this Doc View Source

    DescendOnce()

    Iterate over all the class instances referenced from this instance without further recursion.

    Declaration
    public IEnumerable<IClass> DescendOnce()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IClass>
    | Improve this Doc View Source

    Transform<T>(Visitation.ITransformer<T>)

    Accept the transformer to transform this instance for double dispatch.

    Declaration
    public T Transform<T>(Visitation.ITransformer<T> transformer)
    Parameters
    Type Name Description
    Visitation.ITransformer<T> transformer
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T>, TContext)

    Accept the transformer to visit this instance for double dispatch with the context.

    Declaration
    public T Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T> transformer, TContext context)
    Parameters
    Type Name Description
    Visitation.ITransformerWithContext<TContext, T> transformer
    TContext context
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    TContext
    T

    Implements

    ILevelType
    IClass
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX