- TIBCO BusinessEvents®
- Standard
- Temporal
- Calculus

# Temporal.Calculus.integralInt()

## Signature

`int integralInt(PropertyAtomInt pai, long stime, long etime, int sample_rate, boolean bound_by_stime)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

This method returns the integral of values in the history of a property atom over a given time interval [stime, etime]; we are dealing with discrete steps so just a summation of all the terms each multiplied with the interval(milliseconds) is sufficient.

## Parameters

Name | Type | Description
--- | --- | ---
`pai` | `PropertyAtomInt` | The property to check for the value of.
`stime` | `long` | start time of the interval, 0 means use oldest value's timestamp as start time.
`etime` | `long` | end time of the interval, 0 means use newest value's timestamp as end time.
`sample_rate` | `int` | sample rate for the interval should be greater than 0.
`bound_by_stime` | `boolean` | true implies for stime less than oldest value's time stamp[t0] use t0.

## Returns

Type | Description
--- | ---
`int` | returns the calculated value.

## Cautions

If the values are too large the sum might overflow, also if value did not exist through entire interval an exception is thrown. 'interval' precision is in milliseconds.