2015-07-09 17:32:42 -07:00
|
|
|
import {bind, Binding} from 'angular2/di';
|
2015-08-20 14:28:25 -07:00
|
|
|
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
|
|
|
import {ABSTRACT, BaseException} from 'angular2/src/core/facade/lang';
|
2015-05-27 14:57:54 -07:00
|
|
|
import {MeasureValues} from './measure_values';
|
2015-08-20 14:28:25 -07:00
|
|
|
import {List} from 'angular2/src/core/facade/collection';
|
2015-05-27 14:57:54 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A reporter reports measure values and the valid sample.
|
|
|
|
*/
|
|
|
|
@ABSTRACT()
|
|
|
|
export class Reporter {
|
2015-07-09 17:32:42 -07:00
|
|
|
static bindTo(delegateToken): Binding[] {
|
2015-05-27 14:57:54 -07:00
|
|
|
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
|
|
|
|
}
|
|
|
|
|
|
|
|
reportMeasureValues(values: MeasureValues): Promise<any> { throw new BaseException('NYI'); }
|
|
|
|
|
|
|
|
reportSample(completeSample: List<MeasureValues>,
|
|
|
|
validSample: List<MeasureValues>): Promise<any> {
|
|
|
|
throw new BaseException('NYI');
|
|
|
|
}
|
|
|
|
}
|