UNPKG

653 BPlain TextView Raw
1import {bind, provide, Provider} from 'angular2/src/core/di';
2import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
3import {MeasureValues} from './measure_values';
4
5/**
6 * A reporter reports measure values and the valid sample.
7 */
8export abstract class Reporter {
9 static bindTo(delegateToken): Provider[] {
10 return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
11 }
12
13 reportMeasureValues(values: MeasureValues): Promise<any> { throw new BaseException('NYI'); }
14
15 reportSample(completeSample: MeasureValues[], validSample: MeasureValues[]): Promise<any> {
16 throw new BaseException('NYI');
17 }
18}