*/
public <X> void setTerminationCriterion(Operator<X> criterion) {
CollectorMapOperatorBase<X, Nothing, TerminationCriterionMapper<X>> mapper =
new CollectorMapOperatorBase<X, Nothing, TerminationCriterionMapper<X>>(
new TerminationCriterionMapper<X>(),
new UnaryOperatorInformation<X, Nothing>(criterion.getOperatorInfo().getOutputType(), new NothingTypeInfo()),
"Termination Criterion Aggregation Wrapper");
mapper.setInput(criterion);
this.terminationCriterion = mapper;
this.getAggregators().registerAggregationConvergenceCriterion(TERMINATION_CRITERION_AGGREGATOR_NAME, TerminationCriterionAggregator.class, TerminationCriterionAggregationConvergence.class);