Skip to content

Commit 9aafb6d

Browse files
Merge pull request #36 from eclipse-basyx/release/1.0.2
Release/1.0.2
2 parents 85dc1e0 + 0324f73 commit 9aafb6d

132 files changed

Lines changed: 535 additions & 379 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pom.xml

Lines changed: 92 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,33 @@
55

66
<groupId>org.eclipse.basyx</groupId>
77
<artifactId>basyx.sdk</artifactId>
8-
<version>1.0.1</version>
8+
<version>1.0.2</version>
99
<name>BaSyx SDK</name>
10+
<description>BaSyx Software Development Kit</description>
11+
<url>https://www.eclipse.org/basyx/</url>
12+
13+
<licenses>
14+
<license>
15+
<name>Eclipse Public License 2.0</name>
16+
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
17+
</license>
18+
</licenses>
19+
20+
<developers>
21+
<developer>
22+
<organization>Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.</organization>
23+
<id>fschnicke</id>
24+
<name>Frank Schnicke</name>
25+
<email>frank.schnicke@iese.fraunhofer.de</email>
26+
</developer>
27+
</developers>
28+
29+
<scm>
30+
<connection>scm:https://github.com/eclipse-basyx/basyx-java-sdk.git</connection>
31+
<developerConnection>scm:https://github.com/eclipse-basyx/basyx-java-sdk.git</developerConnection>
32+
<tag>HEAD</tag>
33+
<url>https://github.com/eclipse-basyx/basyx-java-sdk</url>
34+
</scm>
1035

1136
<packaging>jar</packaging>
1237

@@ -113,6 +138,25 @@
113138
</execution>
114139
</executions>
115140
</plugin>
141+
142+
<!-- Generate javadoc -->
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-javadoc-plugin</artifactId>
146+
<version>3.2.0</version>
147+
<configuration>
148+
<source>8</source>
149+
</configuration>
150+
<executions>
151+
<execution>
152+
<goals>
153+
<goal>jar</goal>
154+
</goals>
155+
<id>generate-javadoc</id>
156+
<phase>package</phase>
157+
</execution>
158+
</executions>
159+
</plugin>
116160
</plugins>
117161
</build>
118162

@@ -121,7 +165,7 @@
121165
<dependency>
122166
<groupId>junit</groupId>
123167
<artifactId>junit</artifactId>
124-
<version>4.12</version>
168+
<version>4.13.1</version>
125169
<scope>test</scope>
126170
</dependency>
127171

@@ -143,14 +187,14 @@
143187
<dependency>
144188
<groupId>org.eclipse.milo</groupId>
145189
<artifactId>sdk-client</artifactId>
146-
<version>0.3.3</version>
190+
<version>0.3.6</version>
147191
</dependency>
148192

149193
<!-- Eclipse Milo (for OPC-UA server) -->
150194
<dependency>
151195
<groupId>org.eclipse.milo</groupId>
152196
<artifactId>sdk-server</artifactId>
153-
<version>0.3.3</version>
197+
<version>0.3.6</version>
154198
</dependency>
155199

156200
<!-- Java Servlet API (for HTTP provider) -->
@@ -197,9 +241,9 @@
197241

198242
<!-- Logger -->
199243
<dependency>
200-
<groupId>ch.qos.logback</groupId>
201-
<artifactId>logback-classic</artifactId>
202-
<version>1.2.3</version>
244+
<groupId>ch.qos.logback</groupId>
245+
<artifactId>logback-classic</artifactId>
246+
<version>1.2.3</version>
203247
</dependency>
204248

205249
<!-- Used by Logback to compile filter expressions from logback.xml -->
@@ -224,5 +268,46 @@
224268
</dependency>
225269

226270
</dependencies>
271+
272+
<profiles>
273+
<profile>
274+
<id>MavenCentral</id>
275+
<distributionManagement>
276+
<snapshotRepository>
277+
<id>ossrh</id>
278+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
279+
</snapshotRepository>
280+
<repository>
281+
<id>ossrh</id>
282+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
283+
</repository>
284+
</distributionManagement>
285+
<build>
286+
<plugins>
287+
<!-- Signing the artifacts -->
288+
<plugin>
289+
<groupId>org.apache.maven.plugins</groupId>
290+
<artifactId>maven-gpg-plugin</artifactId>
291+
<version>1.6</version>
292+
<executions>
293+
<execution>
294+
<id>sign-artifacts</id>
295+
<phase>verify</phase>
296+
<goals>
297+
<goal>sign</goal>
298+
</goals>
299+
<configuration>
300+
<gpgArguments>
301+
<arg>--pinentry-mode</arg>
302+
<arg>loopback</arg>
303+
</gpgArguments>
304+
</configuration>
305+
</execution>
306+
</executions>
307+
</plugin>
308+
</plugins>
309+
</build>
310+
</profile>
311+
</profiles>
227312
</project>
228313

src/main/java/org/eclipse/basyx/aas/aggregator/api/IAASAggregator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
/**
22-
* Interface for the Asset Administration Shell Aggregator API <br />
22+
* Interface for the Asset Administration Shell Aggregator API <br>
2323
* It is used to manage multiple AASs at the same endpoint
2424
*
2525
* @author conradi

src/main/java/org/eclipse/basyx/aas/aggregator/restapi/AASAggregatorProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private String stripPrefix(String path) throws MalformedRequestException {
6060
}
6161

6262
/**
63-
* Makes sure, that given Object is an AAS by checking its ModelType<br />
63+
* Makes sure, that given Object is an AAS by checking its ModelType<br>
6464
* Creates a new AAS with the content of the given Map
6565
*
6666
* @param value

src/main/java/org/eclipse/basyx/aas/factory/aasx/AASXPackageExplorerConformantHelper.java

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import java.util.Collection;
1313
import java.util.List;
1414
import java.util.stream.Collectors;
15-
1615
import org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell;
1716
import org.eclipse.basyx.aas.metamodel.api.parts.asset.IAsset;
1817
import org.eclipse.basyx.aas.metamodel.map.AasEnv;
@@ -21,6 +20,7 @@
2120
import org.eclipse.basyx.submodel.metamodel.api.parts.IConceptDescription;
2221
import org.eclipse.basyx.submodel.metamodel.api.reference.IKey;
2322
import org.eclipse.basyx.submodel.metamodel.api.reference.IReference;
23+
import org.eclipse.basyx.submodel.metamodel.api.reference.enums.KeyElements;
2424
import org.eclipse.basyx.submodel.metamodel.map.reference.Reference;
2525

2626
/**
@@ -31,9 +31,13 @@
3131
*
3232
*/
3333
public class AASXPackageExplorerConformantHelper {
34+
35+
static int counter = 0;
3436
/**
3537
* Converts meta model elements so that the AASXPackageExplorer can load their
36-
* serialized AASX
38+
* serialized AASX. This method modifies the passed parameter Asset Administration Shell List.
39+
* As the passed Asset Administration Shell List contains objects as references thatswhy original
40+
* List is modified.
3741
*
3842
* @param aasList
3943
* @param assetList
@@ -42,11 +46,10 @@ public class AASXPackageExplorerConformantHelper {
4246
* @return
4347
*/
4448
public static AasEnv adapt(Collection<IAssetAdministrationShell> aasList, Collection<IAsset> assetList,
45-
Collection<IConceptDescription> conceptDescriptionList, Collection<ISubmodel> submodelList) {
49+
Collection<IConceptDescription> conceptDescriptionList, Collection<ISubmodel> submodelList) {
4650

4751
Collection<IAssetAdministrationShell> convertedAASs = aasList.stream()
48-
.map(AASXPackageExplorerConformantHelper::removeFirstKeyFromSubmodelReferences)
49-
.collect(Collectors.toList());
52+
.map(AASXPackageExplorerConformantHelper::removeFirstKeyFromSubmodelReferences).collect(Collectors.toList());
5053

5154
return new AasEnv(convertedAASs, assetList, conceptDescriptionList, submodelList);
5255
}
@@ -74,10 +77,13 @@ private static IAssetAdministrationShell removeFirstKeyFromSubmodelReferences(IA
7477

7578
private static IReference removeFirstKeyElement(IReference reference) {
7679
List<IKey> keys = reference.getKeys();
77-
keys.remove(0);
7880

79-
IReference ref = new Reference(keys);
80-
return ref;
81-
}
81+
if(!keys.isEmpty() && keys.get(0).getType().equals(KeyElements.ASSETADMINISTRATIONSHELL)) {
82+
keys.remove(0);
83+
84+
return new Reference(keys);
85+
}
8286

87+
return reference;
88+
}
8389
}

src/main/java/org/eclipse/basyx/aas/factory/xml/XMLToMetamodelConverter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ public List<IAsset> parseAssets() throws ParserConfigurationException, SAXExcept
9292
* Parses the Submodels form the XML
9393
*
9494
* @return the Submodels parsed form the XML
95-
* @throws ParserConfigurationException
96-
* @throws SAXException
97-
* @throws IOException
9895
*/
9996
@SuppressWarnings("unchecked")
10097
public List<ISubmodel> parseSubmodels() {
@@ -107,9 +104,6 @@ public List<ISubmodel> parseSubmodels() {
107104
* Parses the ConceptDescriptions form the XML
108105
*
109106
* @return the ConceptDescriptions parsed form the XML
110-
* @throws ParserConfigurationException
111-
* @throws SAXException
112-
* @throws IOException
113107
*/
114108
@SuppressWarnings("unchecked")
115109
public List<IConceptDescription> parseConceptDescriptions() {

src/main/java/org/eclipse/basyx/aas/manager/ConnectedAssetAdministrationShellManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
import org.eclipse.basyx.vab.protocol.http.connector.HTTPConnectorFactory;
3333

3434
/**
35-
* Implement a AAS manager backend that communicates via HTTP/REST<br />
36-
* <br />
35+
* Implement a AAS manager backend that communicates via HTTP/REST<br>
36+
* <br>
3737
*
3838
* @author kuhn, schnicke
3939
*
@@ -54,8 +54,8 @@ public ConnectedAssetAdministrationShellManager(IAASRegistry directory) {
5454
}
5555

5656
/**
57-
* @param networkDirectoryService
58-
* @param providerProvider
57+
* @param directory
58+
* @param provider
5959
*/
6060
public ConnectedAssetAdministrationShellManager(IAASRegistry directory,
6161
IConnectorFactory provider) {

src/main/java/org/eclipse/basyx/aas/manager/api/IAssetAdministrationShellManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public interface IAssetAdministrationShellManager {
4141
* Creates an AAS on a remote server
4242
*
4343
* @param aas
44-
* @param aasId
4544
* @param endpoint
4645
*/
4746
void createAAS(AssetAdministrationShell aas, String endpoint);

src/main/java/org/eclipse/basyx/aas/metamodel/api/IAssetAdministrationShell.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface IAssetAdministrationShell extends IElement, IIdentifiable, IHas
3535
/**
3636
* Return all registered submodels of this AAS
3737
*
38-
* @return IdShort -> ISubmodel
38+
* @return {@literal IdShort -> ISubmodel}
3939
*/
4040
public Map<String, ISubmodel> getSubmodels();
4141

@@ -98,7 +98,7 @@ public interface IAssetAdministrationShell extends IElement, IIdentifiable, IHas
9898

9999

100100
/**
101-
* Gets the views associated with the AAS. <br/>
101+
* Gets the views associated with the AAS. <br>
102102
* If needed stakeholder specific views can be defined on the elements of the
103103
* AAS.
104104
*
@@ -107,7 +107,7 @@ public interface IAssetAdministrationShell extends IElement, IIdentifiable, IHas
107107
public Collection<IView> getViews();
108108

109109
/**
110-
* Gets the concept dictionaries associated with the AAS. <br/>
110+
* Gets the concept dictionaries associated with the AAS. <br>
111111
* An AAS may have one or more concept dictionaries assigned to it. The concept
112112
* dictionaries typically contain only descriptions for elements that are also
113113
* used within the AAS (via HasSemantics).

src/main/java/org/eclipse/basyx/aas/metamodel/api/parts/IConceptDictionary.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
import org.eclipse.basyx.submodel.metamodel.api.reference.IReference;
1717

1818
/**
19-
* A dictionary contains elements that can be reused. <br />
20-
* <br />
21-
* The concept dictionary contains concept descriptions. <br />
22-
* <br />
19+
* A dictionary contains elements that can be reused. <br>
20+
* <br>
21+
* The concept dictionary contains concept descriptions. <br>
22+
* <br>
2323
* Typically a concept description dictionary of an AAS contains only concept
2424
* descriptions of elements used within submodels of the AAS.
2525
*

src/main/java/org/eclipse/basyx/aas/metamodel/api/parts/asset/AssetKind.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.eclipse.basyx.submodel.metamodel.enumhelper.StandardizedLiteralEnumHelper;
1414

1515
/**
16-
* AssetKind enum as defined by DAAS document<br />
16+
* AssetKind enum as defined by DAAS document<br>
1717
* Enumeration for denoting whether an element is a type or an instance.
1818
*
1919
* @author schnicke

0 commit comments

Comments
 (0)