/**
 * Copyright 2017 - 2018  The Hyve B.V.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */ import { Aggregate } from './aggregate' ; import { AggregateType } from './aggregate-type' ; export class NumericalAggregate extends Aggregate { private _min : number ; private _max : number ; private _avg : number ; private _stdDev : number ; private _count : number ; constructor ( ) { super ( ) ; this . type = AggregateType . NUMERICAL ; } get min ( ) : number { return this . _min ; } set min ( value ) { this . _min = value ; } get max ( ) : number { return this . _max ; } set max ( value ) { this . _max = value ; } get avg ( ) : number { return this . _avg ; } set avg ( value ) { this . _avg = value ; } get stdDev ( ) : number { return this . _stdDev ; } set stdDev ( value ) { this . _stdDev = value ; } get count ( ) : number { return this . _count ; } set count ( value ) { this . _count = value ; } }