Class AssetInformation
In AssetInformation identifying meta data of the asset that is represented by an AAS is defined.
Inheritance
Inherited Members
Namespace: AasCore.Aas3_0
Assembly: AasCore.Aas3_0.dll
Syntax
public class AssetInformation : IAssetInformation, IClass
Remarks
The asset may either represent an asset type or an asset instance.
The asset has a globally unique identifier plus – if needed – additional domain specific (proprietary) identifiers. However, to support the corner case of very first phase of lifecycle where a stabilised/constant_set global asset identifier does not already exist, the corresponding attribute GlobalAssetId is optional.
Constraints:
-
Constraint AASd-116:
globalAssetIdis a reserved key. If used as value for Name then Value shall be identical to GlobalAssetId.Constraint AASd-116 is important to enable a generic search across global and specific asset IDs.
In the book, Constraint AASd-116 imposes a case-insensitive equality against
globalAssetId. This is culturally-dependent, and depends on the system settings. For example, the case-folding for the letters "i" and "I" is different in Turkish from English.We implement the constraint as case-sensitive instead to allow for interoperability across different culture settings.
- Constraint AASd-131: For AssetInformation either the GlobalAssetId shall be defined or at least one item in SpecificAssetIds.
Constructors
| Improve this Doc View SourceAssetInformation(AssetKind, String, List<ISpecificAssetId>, String, IResource)
Declaration
public AssetInformation(AssetKind assetKind, string globalAssetId = null, List<ISpecificAssetId> specificAssetIds = null, string assetType = null, IResource defaultThumbnail = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetKind | assetKind | |
| System.String | globalAssetId | |
| System.Collections.Generic.List<ISpecificAssetId> | specificAssetIds | |
| System.String | assetType | |
| IResource | defaultThumbnail |
Properties
| Improve this Doc View SourceAssetKind
Declaration
public AssetKind AssetKind { get; set; }
Property Value
| Type | Description |
|---|---|
| AssetKind |
AssetType
In case AssetKind is applicable the AssetType is the asset ID of the type asset of the asset under consideration as identified by GlobalAssetId.
Declaration
public string AssetType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
In case AssetKind is "Instance" than the AssetType denotes which "Type" the asset is of. But it is also possible to have an AssetType of an asset of kind "Type".
DefaultThumbnail
Thumbnail of the asset represented by the Asset Administration Shell.
Declaration
public IResource DefaultThumbnail { get; set; }
Property Value
| Type | Description |
|---|---|
| IResource |
Remarks
Used as default.
GlobalAssetId
Global identifier of the asset the AAS is representing.
Declaration
public string GlobalAssetId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
This attribute is required as soon as the AAS is exchanged via partners in the life cycle of the asset. In a first phase of the life cycle the asset might not yet have a global ID but already an internal identifier. The internal identifier would be modelled via SpecificAssetIds.
This is a global reference.
SpecificAssetIds
Additional domain-specific, typically proprietary identifier for the asset like e.g., serial number etc.
Declaration
public List<ISpecificAssetId> SpecificAssetIds { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<ISpecificAssetId> |
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> |
OverSpecificAssetIdsOrEmpty()
Iterate over SpecificAssetIds, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<ISpecificAssetId> OverSpecificAssetIdsOrEmpty()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ISpecificAssetId> |
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 |