Temporal.Statistic.numMatchOverLast()

Signature

int numMatchOverLast(PropertyAtom pa, Object matchValue, int last_n_times)

Domain

ACTION, CONDITION, QUERY, BUI

Description

This method counts the number of object which matches a specified value over the last n history entries.

Parameters

NameTypeDescription
paPropertyAtomThe target property.
matchValueObjectThe object whose value is to be matched.
last_n_timesintThe number of last history entry to match.

Returns

TypeDescription
intNumber of history value which match the specified value.

Cautions

none