Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit b3a1edb

Browse files
author
Atlassian Bamboo
committed
Updating raw Java classes to 1.0.2-SNAPSHOT
1 parent 3c9c73e commit b3a1edb

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

src/main/java/io/adminshell/aas/v3/model/AssetAdministrationShellEnvironment.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,27 @@ public interface AssetAdministrationShellEnvironment {
5252
*/
5353
void setAssetAdministrationShells(List<AssetAdministrationShell> assetAdministrationShells);
5454

55+
/**
56+
* Points to the asset in one AssetAdministrationShellEnvironment graph.
57+
*
58+
* More information under
59+
* https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/assets
60+
*
61+
* @return Returns the List of Assets for the property assets.
62+
*/
63+
@IRI("https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/assets")
64+
List<Asset> getAssets();
65+
66+
/**
67+
* Points to the asset in one AssetAdministrationShellEnvironment graph.
68+
*
69+
* More information under
70+
* https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/assets
71+
*
72+
* @param assets desired value for the property assets.
73+
*/
74+
void setAssets(List<Asset> assets);
75+
5576
/**
5677
* Points to the differents Concept Descriptions in one AssetAdministrationShellEnvironment graph.
5778
*

src/main/java/io/adminshell/aas/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,28 @@ public B assetAdministrationShells(AssetAdministrationShell assetAdministrationS
4646
return getSelf();
4747
}
4848

49+
/**
50+
* This function allows setting a value for assets
51+
*
52+
* @param assets desired value to be set
53+
* @return Builder object with new value for assets
54+
*/
55+
public B assets(List<Asset> assets) {
56+
getBuildingInstance().setAssets(assets);
57+
return getSelf();
58+
}
59+
60+
/**
61+
* This function allows adding a value to the List assets
62+
*
63+
* @param assets desired value to be added
64+
* @return Builder object with new value for assets
65+
*/
66+
public B assets(Asset assets) {
67+
getBuildingInstance().getAssets().add(assets);
68+
return getSelf();
69+
}
70+
4971
/**
5072
* This function allows setting a value for conceptDescriptions
5173
*

src/main/java/io/adminshell/aas/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class DefaultAssetAdministrationShellEnvironment implements AssetAdminist
3636
@IRI("https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/assetAdministrationShells")
3737
protected List<AssetAdministrationShell> assetAdministrationShells = new ArrayList<>();
3838

39+
@IRI("https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/assets")
40+
protected List<Asset> assets = new ArrayList<>();
41+
3942
@IRI("https://admin-shell.io/aas/3/0/RC01/AssetAdministrationShellEnvironment/conceptDescriptions")
4043
protected List<ConceptDescription> conceptDescriptions = new ArrayList<>();
4144

@@ -47,6 +50,7 @@ public DefaultAssetAdministrationShellEnvironment() {}
4750
@Override
4851
public int hashCode() {
4952
return Objects.hash(this.assetAdministrationShells,
53+
this.assets,
5054
this.conceptDescriptions,
5155
this.submodels);
5256
}
@@ -62,6 +66,7 @@ public boolean equals(Object obj) {
6266
} else {
6367
DefaultAssetAdministrationShellEnvironment other = (DefaultAssetAdministrationShellEnvironment) obj;
6468
return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) &&
69+
Objects.equals(this.assets, other.assets) &&
6570
Objects.equals(this.conceptDescriptions, other.conceptDescriptions) &&
6671
Objects.equals(this.submodels, other.submodels);
6772
}
@@ -77,6 +82,16 @@ public void setAssetAdministrationShells(List<AssetAdministrationShell> assetAdm
7782
this.assetAdministrationShells = assetAdministrationShells;
7883
}
7984

85+
@Override
86+
public List<Asset> getAssets() {
87+
return assets;
88+
}
89+
90+
@Override
91+
public void setAssets(List<Asset> assets) {
92+
this.assets = assets;
93+
}
94+
8095
@Override
8196
public List<ConceptDescription> getConceptDescriptions() {
8297
return conceptDescriptions;

0 commit comments

Comments
 (0)