Esempio n. 1
0
 public static void encode(TestStackExRequest testStackExRequest, UaEncoder encoder) {
   encoder.encodeSerializable(
       "RequestHeader",
       testStackExRequest._requestHeader != null
           ? testStackExRequest._requestHeader
           : new RequestHeader());
   encoder.encodeUInt32("TestId", testStackExRequest._testId);
   encoder.encodeInt32("Iteration", testStackExRequest._iteration);
   encoder.encodeSerializable(
       "Input",
       testStackExRequest._input != null ? testStackExRequest._input : new CompositeTestType());
 }
Esempio n. 2
0
 public static void encode(VariableAttributes variableAttributes, UaEncoder encoder) {
   encoder.encodeUInt32("SpecifiedAttributes", variableAttributes._specifiedAttributes);
   encoder.encodeLocalizedText("DisplayName", variableAttributes._displayName);
   encoder.encodeLocalizedText("Description", variableAttributes._description);
   encoder.encodeUInt32("WriteMask", variableAttributes._writeMask);
   encoder.encodeUInt32("UserWriteMask", variableAttributes._userWriteMask);
   encoder.encodeVariant("Value", variableAttributes._value);
   encoder.encodeNodeId("DataType", variableAttributes._dataType);
   encoder.encodeInt32("ValueRank", variableAttributes._valueRank);
   encoder.encodeArray(
       "ArrayDimensions", variableAttributes._arrayDimensions, encoder::encodeUInt32);
   encoder.encodeByte("AccessLevel", variableAttributes._accessLevel);
   encoder.encodeByte("UserAccessLevel", variableAttributes._userAccessLevel);
   encoder.encodeDouble("MinimumSamplingInterval", variableAttributes._minimumSamplingInterval);
   encoder.encodeBoolean("Historizing", variableAttributes._historizing);
 }
Esempio n. 3
0
 public static void encode(BrowseDirection browseDirection, UaEncoder encoder) {
   encoder.encodeInt32(null, browseDirection.getValue());
 }