2015-02-11 13:13:49 -05:00
|
|
|
import { List } from 'angular2/src/facade/collection';
|
|
|
|
import {
|
|
|
|
ABSTRACT, BaseException
|
|
|
|
} from 'angular2/src/facade/lang';
|
|
|
|
|
2015-02-17 17:30:24 -05:00
|
|
|
import { MeasureValues } from './measure_values';
|
|
|
|
|
2015-02-11 13:13:49 -05:00
|
|
|
/**
|
|
|
|
* A Validator calculates a valid sample out of the complete sample.
|
|
|
|
* A valid sample is a sample that represents the population that should be observed
|
|
|
|
* in the correct way.
|
|
|
|
*/
|
|
|
|
@ABSTRACT()
|
|
|
|
export class Validator {
|
|
|
|
/**
|
|
|
|
* Calculates a valid sample out of the complete sample
|
|
|
|
*/
|
2015-02-17 17:30:24 -05:00
|
|
|
validate(completeSample:List<MeasureValues>):List<MeasureValues> {
|
2015-02-11 13:13:49 -05:00
|
|
|
throw new BaseException('NYI');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a Map that describes the properties of the validator
|
|
|
|
* (e.g. sample size, ...)
|
|
|
|
*/
|
|
|
|
describe():any {
|
|
|
|
throw new BaseException('NYI');
|
|
|
|
}
|
|
|
|
}
|