Esempio n. 1
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);
  }
Esempio n. 2
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);
  }
Esempio n. 3
0
  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);
  }
Esempio n. 4
0
  public static HistoryData decode(UaDecoder decoder) {
    DataValue[] _dataValues =
        decoder.decodeArray("DataValues", decoder::decodeDataValue, DataValue.class);

    return new HistoryData(_dataValues);
  }