use of com.prosysopc.ua.types.opcua.FolderType 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";
LOG.info("addAasEnvironmentNode {}; to ObjectsFolder", name);
QualifiedName browseName = UaQualifiedName.from(opc.i4aas.ObjectTypeIds.AASEnvironmentType.getNamespaceUri(), name).toQualifiedName(getNamespaceTable());
NodeId nid = createNodeId(objectsFolder, browseName);
FolderType ft = createInstance(AASEnvironmentType.class, nid, browseName, LocalizedText.english(name));
LOG.info("addAasEnvironmentNode: Created class: {}", ft.getClass().getName());
aasEnvironmentNode = (AASEnvironmentType) ft;
objectsFolder.addComponent(aasEnvironmentNode);
}
} catch (Exception ex) {
LOG.error("addAasEnvironmentNode Exception", ex);
throw ex;
}
}
Aggregations