2015-10-10 22:11:13 -07:00
|
|
|
import {bind, provide, Provider} from 'angular2/src/core/di';
|
2015-11-06 17:34:07 -08:00
|
|
|
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
2015-05-27 14:57:54 -07:00
|
|
|
import {MeasureValues} from './measure_values';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A reporter reports measure values and the valid sample.
|
|
|
|
*/
|
2015-09-25 14:48:17 -07:00
|
|
|
export abstract class Reporter {
|
2015-10-10 22:11:13 -07:00
|
|
|
static bindTo(delegateToken): Provider[] {
|
2015-05-27 14:57:54 -07:00
|
|
|
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
|
|
|
|
}
|
|
|
|
|
|
|
|
reportMeasureValues(values: MeasureValues): Promise<any> { throw new BaseException('NYI'); }
|
|
|
|
|
2015-08-28 11:29:19 -07:00
|
|
|
reportSample(completeSample: MeasureValues[], validSample: MeasureValues[]): Promise<any> {
|
2015-05-27 14:57:54 -07:00
|
|
|
throw new BaseException('NYI');
|
|
|
|
}
|
|
|
|
}
|