Temporal.History.howMany()

Signature

int howMany(PropertyAtom pa, long stime, long etime, boolean bound_by_stime)

Domain

ACTION, CONDITION, QUERY, BUI

Description

This method returns how many values exist in interval [stime, etime].

Parameters

NameTypeDescription
paPropertyAtomThe 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.
bound_by_stimebooleantrue implies for stime less than oldest value's time stamp[t0] use t0.

Returns

TypeDescription
intno of values that exist in interval [stime, etime].

Cautions

If PropertyAtom does not have enough timeline, the oldest value starts it.