Package io.adminshell.aas.v3.model.impl
Class DefaultAssetInformation
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.DefaultAssetInformation
-
- All Implemented Interfaces:
AssetInformation
public class DefaultAssetInformation extends java.lang.Object implements AssetInformation
Default implementation of package io.adminshell.aas.v3.model.AssetInformation 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 global asset identifier does not already exist, the corresponding attribute 'globalAssetId' is optional.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultAssetInformation.BuilderThis builder class can be used to construct a DefaultAssetInformation bean.
-
Field Summary
Fields Modifier and Type Field Description protected AssetKindassetKindprotected java.util.List<Reference>billOfMaterialsprotected FiledefaultThumbnailprotected ReferenceglobalAssetIdprotected java.util.List<IdentifierKeyValuePair>specificAssetIds
-
Constructor Summary
Constructors Constructor Description DefaultAssetInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AssetKindgetAssetKind()Denotes whether the Asset of kind 'Type' or 'Instance'.java.util.List<Reference>getBillOfMaterials()A reference to a Submodel that defines the bill of material of the asset represented by the AAS.FilegetDefaultThumbnail()Thumbnail of the asset represented by the asset administration shell.ReferencegetGlobalAssetId()Reference to either an Asset object or a global reference to the asset the AAS is representing.java.util.List<IdentifierKeyValuePair>getSpecificAssetIds()Additional domain-specific, typically proprietary Identifier for the asset like e.g. serial number etc.inthashCode()voidsetAssetKind(AssetKind assetKind)Denotes whether the Asset of kind 'Type' or 'Instance'.voidsetBillOfMaterials(java.util.List<Reference> billOfMaterials)A reference to a Submodel that defines the bill of material of the asset represented by the AAS.voidsetDefaultThumbnail(File defaultThumbnail)Thumbnail of the asset represented by the asset administration shell.voidsetGlobalAssetId(Reference globalAssetId)Reference to either an Asset object or a global reference to the asset the AAS is representing.voidsetSpecificAssetIds(java.util.List<IdentifierKeyValuePair> specificAssetIds)Additional domain-specific, typically proprietary Identifier for the asset like e.g. serial number etc.
-
-
-
Field Detail
-
assetKind
protected AssetKind assetKind
-
billOfMaterials
protected java.util.List<Reference> billOfMaterials
-
defaultThumbnail
protected File defaultThumbnail
-
globalAssetId
protected Reference globalAssetId
-
specificAssetIds
protected java.util.List<IdentifierKeyValuePair> specificAssetIds
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getAssetKind
public AssetKind getAssetKind()
Description copied from interface:AssetInformationDenotes whether the Asset of kind 'Type' or 'Instance'. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/assetKind- Specified by:
getAssetKindin interfaceAssetInformation- Returns:
- Returns the AssetKind for the property assetKind.
-
setAssetKind
public void setAssetKind(AssetKind assetKind)
Description copied from interface:AssetInformationDenotes whether the Asset of kind 'Type' or 'Instance'. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/assetKind- Specified by:
setAssetKindin interfaceAssetInformation- Parameters:
assetKind- desired value for the property assetKind.
-
getGlobalAssetId
public Reference getGlobalAssetId()
Description copied from interface:AssetInformationReference to either an Asset object or a global reference to the asset the AAS is representing. 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 'externalAssetId'. Constraint AASd-023: AssetInformation/globalAssetId either is a reference to an Asset object or a global reference. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/globalAssetId- Specified by:
getGlobalAssetIdin interfaceAssetInformation- Returns:
- Returns the Reference for the property globalAssetId.
-
setGlobalAssetId
public void setGlobalAssetId(Reference globalAssetId)
Description copied from interface:AssetInformationReference to either an Asset object or a global reference to the asset the AAS is representing. 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 'externalAssetId'. Constraint AASd-023: AssetInformation/globalAssetId either is a reference to an Asset object or a global reference. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/globalAssetId- Specified by:
setGlobalAssetIdin interfaceAssetInformation- Parameters:
globalAssetId- desired value for the property globalAssetId.
-
getSpecificAssetIds
public java.util.List<IdentifierKeyValuePair> getSpecificAssetIds()
Description copied from interface:AssetInformationAdditional domain-specific, typically proprietary Identifier for the asset like e.g. serial number etc. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/specificAssetId- Specified by:
getSpecificAssetIdsin interfaceAssetInformation- Returns:
- Returns the List of IdentifierKeyValuePairs for the property specificAssetIds.
-
setSpecificAssetIds
public void setSpecificAssetIds(java.util.List<IdentifierKeyValuePair> specificAssetIds)
Description copied from interface:AssetInformationAdditional domain-specific, typically proprietary Identifier for the asset like e.g. serial number etc. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/specificAssetId- Specified by:
setSpecificAssetIdsin interfaceAssetInformation- Parameters:
specificAssetIds- desired value for the property specificAssetIds.
-
getBillOfMaterials
public java.util.List<Reference> getBillOfMaterials()
Description copied from interface:AssetInformationA reference to a Submodel that defines the bill of material of the asset represented by the AAS. This submodel contains a set of entities describing the material used to compose the composite I4.0 Component. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/billOfMaterial- Specified by:
getBillOfMaterialsin interfaceAssetInformation- Returns:
- Returns the List of References for the property billOfMaterials.
-
setBillOfMaterials
public void setBillOfMaterials(java.util.List<Reference> billOfMaterials)
Description copied from interface:AssetInformationA reference to a Submodel that defines the bill of material of the asset represented by the AAS. This submodel contains a set of entities describing the material used to compose the composite I4.0 Component. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/billOfMaterial- Specified by:
setBillOfMaterialsin interfaceAssetInformation- Parameters:
billOfMaterials- desired value for the property billOfMaterials.
-
getDefaultThumbnail
public File getDefaultThumbnail()
Description copied from interface:AssetInformationThumbnail of the asset represented by the asset administration shell. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/defaultThumbnail- Specified by:
getDefaultThumbnailin interfaceAssetInformation- Returns:
- Returns the File for the property defaultThumbnail.
-
setDefaultThumbnail
public void setDefaultThumbnail(File defaultThumbnail)
Description copied from interface:AssetInformationThumbnail of the asset represented by the asset administration shell. More information under https://admin-shell.io/aas/3/0/RC01/AssetInformation/defaultThumbnail- Specified by:
setDefaultThumbnailin interfaceAssetInformation- Parameters:
defaultThumbnail- desired value for the property defaultThumbnail.
-
-