Class DataSpecificationIec61360
Content of data specification template for concept descriptions for properties, values and value lists conformant to IEC 61360.
Inheritance
Inherited Members
Namespace: AasCore.Aas3_0_RC02
Assembly: AasCore.Aas3_0_RC02.dll
Syntax
public class DataSpecificationIec61360 : IDataSpecificationIec61360, IDataSpecificationContent, IClass
Remarks
IEC61360 requires also a globally unique identifier for a concept description. This ID is not part of the data specification template. Instead the Id as inherited via IIdentifiable is used. Same holds for administrative information like the version and revision.
IdShort and ShortName are very similar. However, in this case the decision was to add ShortName explicitly to the data specification. Same holds for DisplayName and PreferredName. Same holds for Description and Definition.
Constraints:
- Constraint AASc-010: If Value is not empty then ValueList shall be empty and vice versa.
- Constraint AASc-009: If DataType one of: IntegerMeasure, RealMeasure, RationalMeasure, IntegerCurrency, RealCurrency, then Unit or UnitId shall be defined.
Constructors
| Improve this Doc View SourceDataSpecificationIec61360(List<ILangString>, List<ILangString>, String, IReference, String, String, Nullable<DataTypeIec61360>, List<ILangString>, String, IValueList, String, Nullable<LevelType>)
Declaration
public DataSpecificationIec61360(List<ILangString> preferredName, List<ILangString> shortName = null, string unit = null, IReference unitId = null, string sourceOfDefinition = null, string symbol = null, DataTypeIec61360? dataType = null, List<ILangString> definition = null, string valueFormat = null, IValueList valueList = null, string value = null, LevelType? levelType = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<ILangString> | preferredName | |
System.Collections.Generic.List<ILangString> | shortName | |
System.String | unit | |
IReference | unitId | |
System.String | sourceOfDefinition | |
System.String | symbol | |
System.Nullable<DataTypeIec61360> | dataType | |
System.Collections.Generic.List<ILangString> | definition | |
System.String | valueFormat | |
IValueList | valueList | |
System.String | value | |
System.Nullable<LevelType> | levelType |
Properties
| Improve this Doc View SourceDataType
Data Type
Declaration
public DataTypeIec61360? DataType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DataTypeIec61360> |
Definition
Definition in different languages
Declaration
public List<ILangString> Definition { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ILangString> |
LevelType
Set of levels.
Declaration
public LevelType? LevelType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<LevelType> |
PreferredName
Preferred name
Declaration
public List<ILangString> PreferredName { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ILangString> |
Remarks
Constraints:
- Constraint AASc-002: PreferredName shall be provided at least in English.
ShortName
Short name
Declaration
public List<ILangString> ShortName { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ILangString> |
SourceOfDefinition
Source of definition
Declaration
public string SourceOfDefinition { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Symbol
Symbol
Declaration
public string Symbol { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Unit
Unit
Declaration
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UnitId
Unique unit id
Declaration
public IReference UnitId { get; set; }
Property Value
Type | Description |
---|---|
IReference |
Remarks
Unit and UnitId need to be consistent if both attributes are set
It is recommended to use a global reference.
Although the UnitId is a global reference there might exist a ConceptDescription with data specification DataSpecificationPhysicalUnit with the same ID.
Value
Value
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValueFormat
Value Format
Declaration
public string ValueFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValueList
List of allowed values
Declaration
public IValueList ValueList { get; set; }
Property Value
Type | Description |
---|---|
IValueList |
Methods
| Improve this Doc View SourceAccept(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 |
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 |
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> |
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> |
OverDefinitionOrEmpty()
Iterate over Definition, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<ILangString> OverDefinitionOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILangString> |
OverShortNameOrEmpty()
Iterate over ShortName, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<ILangString> OverShortNameOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILangString> |
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 |
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 |