public static TestStackExRequest decode(UaDecoder decoder) {
    RequestHeader _requestHeader = decoder.decodeSerializable("RequestHeader", RequestHeader.class);
    UInteger _testId = decoder.decodeUInt32("TestId");
    Integer _iteration = decoder.decodeInt32("Iteration");
    CompositeTestType _input = decoder.decodeSerializable("Input", CompositeTestType.class);

    return new TestStackExRequest(_requestHeader, _testId, _iteration, _input);
  }
Exemple #2
0
  public static CallResponse decode(UaDecoder decoder) {
    ResponseHeader _responseHeader =
        decoder.decodeSerializable("ResponseHeader", ResponseHeader.class);
    CallMethodResult[] _results =
        decoder.decodeArray("Results", decoder::decodeSerializable, CallMethodResult.class);
    DiagnosticInfo[] _diagnosticInfos =
        decoder.decodeArray("DiagnosticInfos", decoder::decodeDiagnosticInfo, DiagnosticInfo.class);

    return new CallResponse(_responseHeader, _results, _diagnosticInfos);
  }
Exemple #3
0
  public static ReadResponse decode(UaDecoder decoder) {
    ResponseHeader _responseHeader =
        decoder.decodeSerializable("ResponseHeader", ResponseHeader.class);
    DataValue[] _results =
        decoder.decodeArray("Results", decoder::decodeDataValue, DataValue.class);
    DiagnosticInfo[] _diagnosticInfos =
        decoder.decodeArray("DiagnosticInfos", decoder::decodeDiagnosticInfo, DiagnosticInfo.class);

    return new ReadResponse(_responseHeader, _results, _diagnosticInfos);
  }
Exemple #4
0
  public static BrowseDirection decode(UaDecoder decoder) {
    int value = decoder.decodeInt32(null);

    return VALUES.getOrDefault(value, null);
  }
  public static VariableAttributes decode(UaDecoder decoder) {
    UInteger _specifiedAttributes = decoder.decodeUInt32("SpecifiedAttributes");
    LocalizedText _displayName = decoder.decodeLocalizedText("DisplayName");
    LocalizedText _description = decoder.decodeLocalizedText("Description");
    UInteger _writeMask = decoder.decodeUInt32("WriteMask");
    UInteger _userWriteMask = decoder.decodeUInt32("UserWriteMask");
    Variant _value = decoder.decodeVariant("Value");
    NodeId _dataType = decoder.decodeNodeId("DataType");
    Integer _valueRank = decoder.decodeInt32("ValueRank");
    UInteger[] _arrayDimensions =
        decoder.decodeArray("ArrayDimensions", decoder::decodeUInt32, UInteger.class);
    UByte _accessLevel = decoder.decodeByte("AccessLevel");
    UByte _userAccessLevel = decoder.decodeByte("UserAccessLevel");
    Double _minimumSamplingInterval = decoder.decodeDouble("MinimumSamplingInterval");
    Boolean _historizing = decoder.decodeBoolean("Historizing");

    return new VariableAttributes(
        _specifiedAttributes,
        _displayName,
        _description,
        _writeMask,
        _userWriteMask,
        _value,
        _dataType,
        _valueRank,
        _arrayDimensions,
        _accessLevel,
        _userAccessLevel,
        _minimumSamplingInterval,
        _historizing);
  }
Exemple #6
0
  public static HistoryData decode(UaDecoder decoder) {
    DataValue[] _dataValues =
        decoder.decodeArray("DataValues", decoder::decodeDataValue, DataValue.class);

    return new HistoryData(_dataValues);
  }