Search in sources :

Example 1 with UaVariableTypeNode

use of org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode in project milo by eclipse.

the class VariableTypeNodeLoader method loadNode7.

private void loadNode7() {
    UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.ServerVendorCapabilityType, new QualifiedName(0, "ServerVendorCapabilityType"), new LocalizedText("en", "ServerVendorCapabilityType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.BaseDataType, -1, new UInteger[] {}, true);
    node.addReference(new Reference(Identifiers.ServerVendorCapabilityType, Identifiers.HasSubtype, Identifiers.BaseDataVariableType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : UaVariableTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Example 2 with UaVariableTypeNode

use of org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode in project milo by eclipse.

the class VariableTypeNodeLoader method loadNode21.

private void loadNode21() {
    UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.TwoStateDiscreteType, new QualifiedName(0, "TwoStateDiscreteType"), new LocalizedText("en", "TwoStateDiscreteType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.Boolean, -2, new UInteger[] {}, false);
    node.addReference(new Reference(Identifiers.TwoStateDiscreteType, Identifiers.HasProperty, Identifiers.TwoStateDiscreteType_FalseState.expanded(), true));
    node.addReference(new Reference(Identifiers.TwoStateDiscreteType, Identifiers.HasProperty, Identifiers.TwoStateDiscreteType_TrueState.expanded(), true));
    node.addReference(new Reference(Identifiers.TwoStateDiscreteType, Identifiers.HasSubtype, Identifiers.DiscreteItemType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : UaVariableTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Example 3 with UaVariableTypeNode

use of org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode in project milo by eclipse.

the class VariableTypeNodeLoader method loadNode11.

private void loadNode11() {
    UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.SamplingIntervalDiagnosticsType, new QualifiedName(0, "SamplingIntervalDiagnosticsType"), new LocalizedText("en", "SamplingIntervalDiagnosticsType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.SamplingIntervalDiagnosticsDataType, -1, new UInteger[] {}, false);
    node.addReference(new Reference(Identifiers.SamplingIntervalDiagnosticsType, Identifiers.HasComponent, Identifiers.SamplingIntervalDiagnosticsType_SamplingInterval.expanded(), true));
    node.addReference(new Reference(Identifiers.SamplingIntervalDiagnosticsType, Identifiers.HasComponent, Identifiers.SamplingIntervalDiagnosticsType_SampledMonitoredItemsCount.expanded(), true));
    node.addReference(new Reference(Identifiers.SamplingIntervalDiagnosticsType, Identifiers.HasComponent, Identifiers.SamplingIntervalDiagnosticsType_MaxSampledMonitoredItemsCount.expanded(), true));
    node.addReference(new Reference(Identifiers.SamplingIntervalDiagnosticsType, Identifiers.HasComponent, Identifiers.SamplingIntervalDiagnosticsType_DisabledMonitoredItemsSamplingCount.expanded(), true));
    node.addReference(new Reference(Identifiers.SamplingIntervalDiagnosticsType, Identifiers.HasSubtype, Identifiers.BaseDataVariableType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : UaVariableTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Example 4 with UaVariableTypeNode

use of org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode in project milo by eclipse.

the class VariableTypeNodeLoader method loadNode25.

private void loadNode25() {
    UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.FiniteStateVariableType, new QualifiedName(0, "FiniteStateVariableType"), new LocalizedText("en", "FiniteStateVariableType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.LocalizedText, -1, new UInteger[] {}, false);
    node.addReference(new Reference(Identifiers.FiniteStateVariableType, Identifiers.HasProperty, Identifiers.FiniteStateVariableType_Id.expanded(), true));
    node.addReference(new Reference(Identifiers.FiniteStateVariableType, Identifiers.HasSubtype, Identifiers.StateVariableType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : UaVariableTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Example 5 with UaVariableTypeNode

use of org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode in project milo by eclipse.

the class VariableTypeNodeLoader method loadNode29.

private void loadNode29() {
    UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.BuildInfoType, new QualifiedName(0, "BuildInfoType"), new LocalizedText("en", "BuildInfoType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.BuildInfo, -1, new UInteger[] {}, false);
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_ProductUri.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_ManufacturerName.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_ProductName.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_SoftwareVersion.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_BuildNumber.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasComponent, Identifiers.BuildInfoType_BuildDate.expanded(), true));
    node.addReference(new Reference(Identifiers.BuildInfoType, Identifiers.HasSubtype, Identifiers.BaseDataVariableType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : UaVariableTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Aggregations

UaVariableTypeNode (org.eclipse.milo.opcua.sdk.server.nodes.UaVariableTypeNode)38 Reference (org.eclipse.milo.opcua.sdk.core.Reference)37 DataValue (org.eclipse.milo.opcua.stack.core.types.builtin.DataValue)37 LocalizedText (org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)37 QualifiedName (org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName)37 HashMap (java.util.HashMap)1 Map (java.util.Map)1 ExecutionException (java.util.concurrent.ExecutionException)1 ObjectTypeNode (org.eclipse.milo.opcua.sdk.core.nodes.ObjectTypeNode)1 VariableTypeNode (org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode)1 AddressSpaceManager (org.eclipse.milo.opcua.sdk.server.api.AddressSpaceManager)1 UaMethodNode (org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode)1 UaNode (org.eclipse.milo.opcua.sdk.server.nodes.UaNode)1 UaObjectNode (org.eclipse.milo.opcua.sdk.server.nodes.UaObjectNode)1 UaObjectTypeNode (org.eclipse.milo.opcua.sdk.server.nodes.UaObjectTypeNode)1 UaVariableNode (org.eclipse.milo.opcua.sdk.server.nodes.UaVariableNode)1 NamespaceTable (org.eclipse.milo.opcua.stack.core.NamespaceTable)1 UaException (org.eclipse.milo.opcua.stack.core.UaException)1 ExpandedNodeId (org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId)1 NodeId (org.eclipse.milo.opcua.stack.core.types.builtin.NodeId)1