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_RC02
Assembly: AasCore.Aas3_0_RC02.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:
globalAssetId
(case-insensitive) is a reserved key. If used as value for Name then Value shall be identical to GlobalAssetId.
Constructors
| Improve this Doc View SourceAssetInformation(AssetKind, IReference, List<ISpecificAssetId>, IResource)
Declaration
public AssetInformation(AssetKind assetKind, IReference globalAssetId = null, List<ISpecificAssetId> specificAssetIds = null, IResource defaultThumbnail = null)
Parameters
Type | Name | Description |
---|---|---|
AssetKind | assetKind | |
IReference | globalAssetId | |
System.Collections.Generic.List<ISpecificAssetId> | specificAssetIds | |
IResource | defaultThumbnail |
Properties
| Improve this Doc View SourceAssetKind
Declaration
public AssetKind AssetKind { get; set; }
Property Value
Type | Description |
---|---|
AssetKind |
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 IReference GlobalAssetId { get; set; }
Property Value
Type | Description |
---|---|
IReference |
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 |