Temporal.History.alwaysIncreasingDouble()

Signature

boolean alwaysIncreasingDouble(PropertyAtomDouble pad, long stime, long etime, int sample_interval, boolean bound_by_stime)

Domain

ACTION, CONDITION, QUERY, BUI

Description

This method checks if samples of the property always increase over a given time interval [stime, etime]. Returns true only if each sample value is greater than the immediately prior sample value in the given time interval. All the times are in milliseconds.

Parameters

NameTypeDescription
padPropertyAtomDoubleThe property to check for the value of.
stimelongstart time of the interval, 0 means use oldest value's timestamp as start time.
etimelongend time of the interval, 0 means use newest value's timestamp as end time.
sample_intervalintinterval between samples in milliseconds, should be greater than 0.
bound_by_stimebooleantrue implies for stime less than oldest value's time stamp[t0] use t0.

Returns

TypeDescription
booleantrue if samples of the property always increase, false otherwise.

Cautions

If value did not exist through the entire interval an exception is thrown.