From 22d9b23664ca23916569aed2cd6dc2ce3dc694f4 Mon Sep 17 00:00:00 2001 From: Noureddine Date: Tue, 8 Nov 2022 19:41:14 +0000 Subject: [PATCH] add CoV increment (#493) --- .gencode_hash.txt | 6 +- gencode/docs/config.html | 55 +++++++++++++++++++ .../java/udmi/schema/PointPointsetConfig.java | 13 ++++- .../udmi/schema/config_pointset_point.py | 4 ++ schema/config_pointset_point.json | 5 ++ 5 files changed, 78 insertions(+), 5 deletions(-) diff --git a/.gencode_hash.txt b/.gencode_hash.txt index 6facb5b4c6..5c9f866c66 100644 --- a/.gencode_hash.txt +++ b/.gencode_hash.txt @@ -1,6 +1,6 @@ b35646a2f3d7c30fd34e3ea6ab6a1070b39c469fd1de49cab1093ff32faaf06d gencode/docs/command_discovery.html e1f62882576d0f4332360f2aedb79b37a43973fb31d862c829af924f8f310ec1 gencode/docs/command_mapping.html -5513a43ef916d0413de0c95aede03042ce8824e98fbb8f3634c12f5dee53cce8 gencode/docs/config.html +692ea694fbd8c88ebc1d7fed26363bd3e6b4e52061431a4d8c76bf0eddfaf2ff gencode/docs/config.html 30c7f39e50e290b0a36a3414cf1c90277ebd249f126f85f0a307bc7b74164e08 gencode/docs/config_mapping.html 5598402bde04860394d91ecf43f5c653ff539cce49d011db4b5b17d596b72c2a gencode/docs/configuration_endpoint.html b7ca70e3176f997f254c32bd8d53dff1462ac8a71c0e166aaa85193d67bff60b gencode/docs/configuration_execution.html @@ -68,7 +68,7 @@ d2bf4eea0ca3df47b9ffe31481a52170e2d2bc3a0e7f2eab582e93cc20ccc886 gencode/java/u c7659cd5f239dc20ce3cae84a0e38bbfd9de346e5963a14e245e1163a8d37a52 gencode/java/udmi/schema/Metrics.java 5e1c5411fae4d7c47391ceb5d19ae864fcd484df75ac6b6db39fd2d12647dec8 gencode/java/udmi/schema/Physical_tag.java d808259db6bbcd26ecf438844ce286d15d4750906be24588d97acfbe8a4ae315 gencode/java/udmi/schema/PointEnumerationEvent.java -9855400da64cb7c9501294b72d0190caa646fab043b39a6c7c5e4b0250515f20 gencode/java/udmi/schema/PointPointsetConfig.java +eb478a6ebd66b150da8d6dc8fdf05a10d09d6d0ea1df8a0578728703718c5551 gencode/java/udmi/schema/PointPointsetConfig.java 8f3fc1cdc2dcd3e524863f4675aebabc450a35f5fd1cdc3fd37289b5cab7f2ec gencode/java/udmi/schema/PointPointsetEvent.java 65337109653a93d873dae40eb517857149bae1b20c7b479f41b35c0822d94ba0 gencode/java/udmi/schema/PointPointsetModel.java db8d6dd3498019ad12e0f328b6237d07e52f133f8b08858b712611a52c198009 gencode/java/udmi/schema/PointPointsetState.java @@ -116,7 +116,7 @@ b461bdc24310ef972faf579b5be577b5af67fb0977d6afb4c42955211b26e3d5 gencode/python ac3facbd96f7cb2f7e387e7497d6a36af379a2687329571f250c5670f9933244 gencode/python/udmi/schema/config_mapping.py 1867ee8f1f4552ff121b7a2a62815817b2c9939a8817f1e093fbd688b8faa1a4 gencode/python/udmi/schema/config_mapping_device.py 9eab64849e04b25203d5da47856c3f8dda2b96903e4dc43ab932ee35014700bd gencode/python/udmi/schema/config_pointset.py -607c5047df878a1333df3ce88dcce34668959b0b315f6954bf1a4963dcf7839e gencode/python/udmi/schema/config_pointset_point.py +33ce7ee99051d56dd3c4d69edf92583d0bb7fd751417948b71292ac2285d3c19 gencode/python/udmi/schema/config_pointset_point.py ba37d2d54df565aba42ef055a0ec961175d180c2e8092a914e62029bc5388857 gencode/python/udmi/schema/config_system.py 97c2e5fadc6da0d84660f3296de885ab59f4b04154179b6717f77ec366f1544b gencode/python/udmi/schema/config_system_testing.py 4637fc257ea4d6ea5a46d98db69c57e27e4ecbf5d86f77036cd1382f1a40f532 gencode/python/udmi/schema/configuration_endpoint.py diff --git a/gencode/docs/config.html b/gencode/docs/config.html index 7d1029eca9..7575fa9024 100644 --- a/gencode/docs/config.html +++ b/gencode/docs/config.html @@ -2457,6 +2457,61 @@

+
+
+
+

+ +

+
+ +
+
+ + Type: number
+

The CoV (change of value) increment, which when set, enables CoV on the point and defines the minimum change in present value of the respective point before an update is published

+
+ + + +

Value must be greater or equal to 0

+ + +
+
+
+
diff --git a/gencode/java/udmi/schema/PointPointsetConfig.java b/gencode/java/udmi/schema/PointPointsetConfig.java index 0909c0c2cc..d555fe1b79 100644 --- a/gencode/java/udmi/schema/PointPointsetConfig.java +++ b/gencode/java/udmi/schema/PointPointsetConfig.java @@ -18,7 +18,8 @@ @JsonPropertyOrder({ "ref", "units", - "set_value" + "set_value", + "cov_increment" }) @Generated("jsonschema2pojo") public class PointPointsetConfig { @@ -44,6 +45,13 @@ public class PointPointsetConfig { @JsonProperty("set_value") @JsonPropertyDescription("Used for cloud writeback functionality, this field specifies the value for a given point in the device's current units.") public Object set_value; + /** + * The CoV (change of value) increment, which when set, enables CoV on the point and defines the minimum change in present value of the respective point before an update is published + * + */ + @JsonProperty("cov_increment") + @JsonPropertyDescription("The CoV (change of value) increment, which when set, enables CoV on the point and defines the minimum change in present value of the respective point before an update is published") + public Double cov_increment; @Override public int hashCode() { @@ -51,6 +59,7 @@ public int hashCode() { result = ((result* 31)+((this.ref == null)? 0 :this.ref.hashCode())); result = ((result* 31)+((this.units == null)? 0 :this.units.hashCode())); result = ((result* 31)+((this.set_value == null)? 0 :this.set_value.hashCode())); + result = ((result* 31)+((this.cov_increment == null)? 0 :this.cov_increment.hashCode())); return result; } @@ -63,7 +72,7 @@ public boolean equals(Object other) { return false; } PointPointsetConfig rhs = ((PointPointsetConfig) other); - return ((((this.ref == rhs.ref)||((this.ref!= null)&&this.ref.equals(rhs.ref)))&&((this.units == rhs.units)||((this.units!= null)&&this.units.equals(rhs.units))))&&((this.set_value == rhs.set_value)||((this.set_value!= null)&&this.set_value.equals(rhs.set_value)))); + return (((((this.ref == rhs.ref)||((this.ref!= null)&&this.ref.equals(rhs.ref)))&&((this.units == rhs.units)||((this.units!= null)&&this.units.equals(rhs.units))))&&((this.set_value == rhs.set_value)||((this.set_value!= null)&&this.set_value.equals(rhs.set_value))))&&((this.cov_increment == rhs.cov_increment)||((this.cov_increment!= null)&&this.cov_increment.equals(rhs.cov_increment)))); } } diff --git a/gencode/python/udmi/schema/config_pointset_point.py b/gencode/python/udmi/schema/config_pointset_point.py index 57084817df..4f5433724b 100644 --- a/gencode/python/udmi/schema/config_pointset_point.py +++ b/gencode/python/udmi/schema/config_pointset_point.py @@ -8,6 +8,7 @@ def __init__(self): self.ref = None self.units = None self.set_value = None + self.cov_increment = None @staticmethod def from_dict(source): @@ -17,6 +18,7 @@ def from_dict(source): result.ref = source.get('ref') result.units = source.get('units') result.set_value = source.get('set_value') + result.cov_increment = source.get('cov_increment') return result @staticmethod @@ -43,4 +45,6 @@ def to_dict(self): result['units'] = self.units # 5 if self.set_value: result['set_value'] = self.set_value # 5 + if self.cov_increment: + result['cov_increment'] = self.cov_increment # 5 return result diff --git a/schema/config_pointset_point.json b/schema/config_pointset_point.json index 4e2ca39f0c..54d927aaa3 100644 --- a/schema/config_pointset_point.json +++ b/schema/config_pointset_point.json @@ -17,6 +17,11 @@ "set_value": { "description": "Used for cloud writeback functionality, this field specifies the value for a given point in the device's current units.", "examples": [22.4] + }, + "cov_increment": { + "type": "number", + "description": "The CoV (change of value) increment, which when set, enables CoV on the point and defines the minimum change in present value of the respective point before an update is published", + "minimum": 0 } } }