Search in sources :

Example 1 with AASOrderedSubmodelElementCollectionType

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;
}
Also used : AASOrderedSubmodelElementCollectionType(opc.i4aas.AASOrderedSubmodelElementCollectionType) AASSubmodelElementCollectionType(opc.i4aas.AASSubmodelElementCollectionType) ServiceResultException(com.prosysopc.ua.stack.common.ServiceResultException) StatusException(com.prosysopc.ua.StatusException) MessageBusException(de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException) ServiceException(com.prosysopc.ua.ServiceException) UaNodeFactoryException(com.prosysopc.ua.nodes.UaNodeFactoryException) AddressSpaceException(com.prosysopc.ua.client.AddressSpaceException)

Aggregations

ServiceException (com.prosysopc.ua.ServiceException)1 StatusException (com.prosysopc.ua.StatusException)1 AddressSpaceException (com.prosysopc.ua.client.AddressSpaceException)1 UaNodeFactoryException (com.prosysopc.ua.nodes.UaNodeFactoryException)1 ServiceResultException (com.prosysopc.ua.stack.common.ServiceResultException)1 MessageBusException (de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException)1 AASOrderedSubmodelElementCollectionType (opc.i4aas.AASOrderedSubmodelElementCollectionType)1 AASSubmodelElementCollectionType (opc.i4aas.AASSubmodelElementCollectionType)1