From 18d8bcf18bfb42efcad89882863dd2c9bf59e014 Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Mon, 2 Dec 2024 11:29:05 +0100 Subject: [PATCH] riemann sum tern defs Signed-off-by: Mark Herwege --- .../web/src/assets/openhab-js-tern-defs.json | 58 +++++++++++-------- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/assets/openhab-js-tern-defs.json b/bundles/org.openhab.ui/web/src/assets/openhab-js-tern-defs.json index fb5c68a2ab..0b3f3c933b 100644 --- a/bundles/org.openhab.ui/web/src/assets/openhab-js-tern-defs.json +++ b/bundles/org.openhab.ui/web/src/assets/openhab-js-tern-defs.json @@ -101,19 +101,19 @@ }, "ItemPersistence": { "averageBetween": { - "!doc": "Gets the average value of the state of a given Item between two certain points in time.", - "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!doc": "Gets the average value of the state of a given Item between two points in time.", + "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "averageSince": { "!doc": "Gets the average value of the state of a given Item since a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "averageUntil": { "!doc": "Gets the average value of the state of a given Item until a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "changedBetween": { - "!doc": "Checks if the state of a given Item has changed between two certain points in time.", + "!doc": "Checks if the state of a given Item has changed between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> boolean" }, "changedSince": { @@ -125,7 +125,7 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> boolean" }, "countBetween": { - "!doc": "Gets the number of available persisted data points of a given Item between two certain points in time.", + "!doc": "Gets the number of available persisted data points of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number" }, "countSince": { @@ -137,7 +137,7 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number" }, "countStateChangesBetween": { - "!doc": "Gets the number of changes in persisted data points of a given Item between two certain points in time.", + "!doc": "Gets the number of changes in persisted data points of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number" }, "countStateChangesSince": { @@ -145,11 +145,11 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number" }, "countStateChangesUntil": { - "!doc": "Gets the number of changes in future data points of a given Item since a certain point in time.", + "!doc": "Gets the number of changes in future data points of a given Item until a certain point in time.", "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number" }, "deltaBetween": { - "!doc": "Gets the difference value of the state of a given Item between two certain points in time.", + "!doc": "Gets the difference value of the state of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" }, "deltaSince": { @@ -161,19 +161,19 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" }, "deviationBetween": { - "!doc": "Gets the standard deviation of the state of the given Item between two certain points in time.", - "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!doc": "Gets the standard deviation of the state of the given Item between two points in time.", + "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "deviationSince": { "!doc": "Gets the standard deviation of the state of the given Item since a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "deviationUntil": { "!doc": "Gets the standard deviation of the state of the given Item until a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null" }, "evolutionRateBetween": { - "!doc": "Gets the evolution rate of the state of a given Item between two certain points in time.", + "!doc": "Gets the evolution rate of the state of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number|null" }, "evolutionRateSince": { @@ -185,7 +185,7 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number|null" }, "getAllStatesBetween": { - "!doc": "Retrieves persisted data for a given Item between two certain points in time.", + "!doc": "Retrieves persisted data for a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> [PersistedItem]" }, "getAllStatesSince": { @@ -213,7 +213,7 @@ "!type": "fn(serviceId?: string) -> ZonedDateTime|null" }, "maximumBetween": { - "!doc": "Gets the maximum value of the persisted states of a given Item between two certain points in time.", + "!doc": "Gets the maximum value of the persisted states of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" }, "maximumSince": { @@ -225,7 +225,7 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" }, "minimumBetween": { - "!doc": "Gets the minimum value of the persisted states of a given Item between two certain points in time.", + "!doc": "Gets the minimum value of the persisted states of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem" }, "minimumSince": { @@ -248,8 +248,20 @@ "!doc": "Returns the next state of a given item.", "!type": "fn(skipEqual?: boolean, serviceId?: string) -> PersistedItem" }, + "riemannSumBetween": { + "!doc": "Gets the Riemannsum of the state of the given Item between two points in time, time calculated in seconds.", + "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" + }, + "riemannSumSince": { + "!doc": "Gets the Riemannsum of of the state of the given Item since a certain point in time, time calculated in seconds.", + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" + }, + "riemannSumUntil": { + "!doc": "Gets the Riemannsum of of the state of the given Item until a certain point in time, time calculated in seconds.", + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" + }, "sumBetween": { - "!doc": "Gets the sum of the states of a given Item between two certain points in time.", + "!doc": "Gets the sum of the states of a given Item between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" }, "sumSince": { @@ -261,7 +273,7 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" }, "updatedBetween": { - "!doc": "Checks if the state of a given Item has been updated between two certain points in time.", + "!doc": "Checks if the state of a given Item has been updated between two points in time.", "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> boolean" }, "updatedSince": { @@ -273,16 +285,16 @@ "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> boolean" }, "varianceBetween": { - "!doc": "Gets the variance of the state of the given Item between two certain points in time.", - "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" + "!doc": "Gets the variance of the state of the given Item between two points in time.", + "!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" }, "varianceSince": { "!doc": "Gets the variance of the state of the given Item since a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" }, "varianceUntil": { "!doc": "Gets the variance of the state of the given Item until a certain point in time.", - "!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null" + "!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null" } }, "PersistedItem": {