/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { IndicatorCalculationStrategy } from "./IndicatorCalculationStrategy";
import { markType } from "igniteui-react-core/ES2015/type";
/**
 * @hidden
 */
export class ItemwiseStrategyCalculationStrategy extends IndicatorCalculationStrategy {
    constructor() {
        super(...arguments);
        this.c = null;
    }
    b(a, b) {
        return this.c.b(a, b);
    }
    a(a, b) {
        let c = true;
        for (let d = a.calculateFrom; d < a.calculateFrom + a.calculateCount; d++) {
            c = this.c.a(a, b, d);
            if (!c) {
                return false;
            }
        }
        return c;
    }
}
ItemwiseStrategyCalculationStrategy.$t = markType(ItemwiseStrategyCalculationStrategy, 'ItemwiseStrategyCalculationStrategy', IndicatorCalculationStrategy.$);
