use of com.prosysopc.ua.nodes.UaObject in project FAAAST-Service by FraunhoferIOSB.
the class AasServiceNodeManager method addAasEnvironmentNode.
/**
* Adds the AASEnvironment Node.
*/
private void addAasEnvironmentNode() {
try {
final UaObject objectsFolder = getServer().getNodeManagerRoot().getObjectsFolder();
if (aasEnvironment != null) {
String name = "AASEnvironment";
logger.info("addAasEnvironmentNode " + name + "; to ObjectsFolder");
QualifiedName browseName = UaQualifiedName.from(opc.i4aas.ObjectTypeIds.AASEnvironmentType.getNamespaceUri(), name).toQualifiedName(getNamespaceTable());
NodeId nid = createNodeId(objectsFolder, browseName);
aasEnvironmentNode = createInstance(AASEnvironmentType.class, nid, browseName, LocalizedText.english(name));
objectsFolder.addComponent(aasEnvironmentNode);
}
} catch (Throwable ex) {
logger.error("addAasEnvironmentNode Exception", ex);
throw ex;
}
}
Aggregations