use of opc.i4aas.AASOrderedSubmodelElementCollectionType in project FAAAST-Service by FraunhoferIOSB.
the class AasServiceNodeManager method createAasOrderedSubmodelElementCollection.
/**
* Creates an AAS Ordered Submodel Element Collection.
*
* @param name The desired name
* @param nid The desired NodeId
* @return The created Ordered Submodel Element Collection object
*/
private AASSubmodelElementCollectionType createAasOrderedSubmodelElementCollection(String name, NodeId nid) {
AASSubmodelElementCollectionType retval = null;
try {
AASOrderedSubmodelElementCollectionType orderedNode = createInstance(AASOrderedSubmodelElementCollectionType.class, nid, UaQualifiedName.from(opc.i4aas.ObjectTypeIds.AASOrderedSubmodelElementCollectionType.getNamespaceUri(), name).toQualifiedName(getNamespaceTable()), LocalizedText.english(name));
retval = orderedNode;
} catch (Exception ex) {
LOG.error("createAasOrderedSubmodelElementCollection Exception", ex);
throw ex;
}
return retval;
}
Aggregations