PLCnext API Documentation 23.6.0.37
LimiterStatistic.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Rsc/Services/IRscSerializable.hpp"
9#include "Arp/System/Rsc/Services/RscReader.hpp"
10#include "Arp/System/Rsc/Services/RscWriter.hpp"
11
12// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
13
14namespace Arp { namespace Hardware { namespace Nim { namespace Services
15{
16
17using namespace Arp;
18using namespace Arp::System::Rsc::Services;
19
24{
25public:
30
35
40
45
50
51 void Serialize(RscWriter& writer)const override
52 {
53 writer.Write(this->MovingAverage);
54 writer.Write(this->MovingAverageMax);
55 writer.Write(this->Peak);
56 writer.Write(this->LimitingDuration);
57 writer.Write(this->LimitingEventCount);
58 }
59
60 void Deserialize(RscReader& reader)override
61 {
62 reader.Read(this->MovingAverage);
63 reader.Read(this->MovingAverageMax);
64 reader.Read(this->Peak);
65 reader.Read(this->LimitingDuration);
66 reader.Read(this->LimitingEventCount);
67 }
68
69 static constexpr size_t GetFieldCount(void)
70 {
71 return 5;
72 }
73};
74
75}}}} // end of namespace Arp::Hardware::Nim::Services
Statistical values for the NetloadLimiter
Definition: LimiterStatistic.hpp:24
void Deserialize(RscReader &reader) override
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.
Definition: LimiterStatistic.hpp:60
uint32 MovingAverage
Moving average over 1 second (1000 measurement cycles per second).
Definition: LimiterStatistic.hpp:29
uint64 LimitingDuration
Sum of time the limiter was limiting since last reset (microseconds).
Definition: LimiterStatistic.hpp:44
uint32 LimitingEventCount
Number of limiting events since last reset.
Definition: LimiterStatistic.hpp:49
uint32 Peak
Max value of a single 1 milli second measurement cycle.
Definition: LimiterStatistic.hpp:39
uint32 MovingAverageMax
Max value of Arp.Hardware.Nim.Services.LimiterStatistic.MovingAverage.
Definition: LimiterStatistic.hpp:34
void Serialize(RscWriter &writer) const override
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.
Definition: LimiterStatistic.hpp:51
Marshalls structure or class data types. Serialize and Deserialize have to marshal fields in the same...
Definition: IRscSerializable.hpp:20
Reads data from Rsc
Definition: RscReader.hpp:27
T Read(void)
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
Definition: RscReader.hpp:166
Writes data to Rsc.
Definition: RscWriter.hpp:32
void Write(const T &value)
Writes an element of T from Rsc. Datatag and format is determined deducted by type of T.
Definition: RscWriter.hpp:178
std::uint64_t uint64
The Arp unsigned integer type of 8 byte size.
Definition: PrimitiveTypes.hpp:40
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API