Temporal.Numeric.totalOfLast()

Signature

Object totalOfLast(PropertyAtom pa, int last_n_times)

Domain

ACTION, CONDITION, QUERY, BUI

Description

This method calculates the sum of the value of the last n history entries.

Parameters

NameTypeDescription
paPropertyAtomThe target property for calculation.
last_n_timesintThe number of last history entries to calculate.

Returns

TypeDescription
ObjectThe sum of the value of the last n history entries. The return object type is the same as the type of the value of 'pa'.

Cautions

none