public static void encode(
     MonitoredItemCreateResult monitoredItemCreateResult, UaEncoder encoder) {
   encoder.encodeStatusCode("StatusCode", monitoredItemCreateResult._statusCode);
   encoder.encodeUInt32("MonitoredItemId", monitoredItemCreateResult._monitoredItemId);
   encoder.encodeDouble(
       "RevisedSamplingInterval", monitoredItemCreateResult._revisedSamplingInterval);
   encoder.encodeUInt32("RevisedQueueSize", monitoredItemCreateResult._revisedQueueSize);
   encoder.encodeExtensionObject("FilterResult", monitoredItemCreateResult._filterResult);
 }
Ejemplo n.º 2
0
 public static void encode(WriteResponse writeResponse, UaEncoder encoder) {
   encoder.encodeSerializable(
       "ResponseHeader",
       writeResponse._responseHeader != null
           ? writeResponse._responseHeader
           : new ResponseHeader());
   encoder.encodeArray("Results", writeResponse._results, encoder::encodeStatusCode);
   encoder.encodeArray(
       "DiagnosticInfos", writeResponse._diagnosticInfos, encoder::encodeDiagnosticInfo);
 }
 public static void encode(
     MonitoredItemCreateRequest monitoredItemCreateRequest, UaEncoder encoder) {
   encoder.encodeSerializable(
       "ItemToMonitor",
       monitoredItemCreateRequest._itemToMonitor != null
           ? monitoredItemCreateRequest._itemToMonitor
           : new ReadValueId());
   encoder.encodeEnumeration("MonitoringMode", monitoredItemCreateRequest._monitoringMode);
   encoder.encodeSerializable(
       "RequestedParameters",
       monitoredItemCreateRequest._requestedParameters != null
           ? monitoredItemCreateRequest._requestedParameters
           : new MonitoringParameters());
 }
Ejemplo n.º 4
0
 public static void encode(NodeAttributesMask nodeAttributesMask, UaEncoder encoder) {
   encoder.encodeInt32(null, nodeAttributesMask.getValue());
 }
Ejemplo n.º 5
0
 public static void encode(NodeClass nodeClass, UaEncoder encoder) {
   encoder.encodeInt32(null, nodeClass.getValue());
 }
Ejemplo n.º 6
0
 public static void encode(ArrayTestType arrayTestType, UaEncoder encoder) {
   encoder.encodeArray("Booleans", arrayTestType._booleans, encoder::encodeBoolean);
   encoder.encodeArray("SBytes", arrayTestType._sBytes, encoder::encodeSByte);
   encoder.encodeArray("Int16s", arrayTestType._int16s, encoder::encodeInt16);
   encoder.encodeArray("UInt16s", arrayTestType._uInt16s, encoder::encodeUInt16);
   encoder.encodeArray("Int32s", arrayTestType._int32s, encoder::encodeInt32);
   encoder.encodeArray("UInt32s", arrayTestType._uInt32s, encoder::encodeUInt32);
   encoder.encodeArray("Int64s", arrayTestType._int64s, encoder::encodeInt64);
   encoder.encodeArray("UInt64s", arrayTestType._uInt64s, encoder::encodeUInt64);
   encoder.encodeArray("Floats", arrayTestType._floats, encoder::encodeFloat);
   encoder.encodeArray("Doubles", arrayTestType._doubles, encoder::encodeDouble);
   encoder.encodeArray("Strings", arrayTestType._strings, encoder::encodeString);
   encoder.encodeArray("DateTimes", arrayTestType._dateTimes, encoder::encodeDateTime);
   encoder.encodeArray("Guids", arrayTestType._guids, encoder::encodeGuid);
   encoder.encodeArray("ByteStrings", arrayTestType._byteStrings, encoder::encodeByteString);
   encoder.encodeArray("XmlElements", arrayTestType._xmlElements, encoder::encodeXmlElement);
   encoder.encodeArray("NodeIds", arrayTestType._nodeIds, encoder::encodeNodeId);
   encoder.encodeArray(
       "ExpandedNodeIds", arrayTestType._expandedNodeIds, encoder::encodeExpandedNodeId);
   encoder.encodeArray("StatusCodes", arrayTestType._statusCodes, encoder::encodeStatusCode);
   encoder.encodeArray(
       "DiagnosticInfos", arrayTestType._diagnosticInfos, encoder::encodeDiagnosticInfo);
   encoder.encodeArray(
       "QualifiedNames", arrayTestType._qualifiedNames, encoder::encodeQualifiedName);
   encoder.encodeArray(
       "LocalizedTexts", arrayTestType._localizedTexts, encoder::encodeLocalizedText);
   encoder.encodeArray(
       "ExtensionObjects", arrayTestType._extensionObjects, encoder::encodeExtensionObject);
   encoder.encodeArray("DataValues", arrayTestType._dataValues, encoder::encodeDataValue);
   encoder.encodeArray("Variants", arrayTestType._variants, encoder::encodeVariant);
   encoder.encodeArray(
       "EnumeratedValues", arrayTestType._enumeratedValues, encoder::encodeEnumeration);
 }
 public static void encode(EndpointUrlListDataType endpointUrlListDataType, UaEncoder encoder) {
   encoder.encodeArray(
       "EndpointUrlList", endpointUrlListDataType._endpointUrlList, encoder::encodeString);
 }