Class ContainerIterators.CollectIteratorEvaluator
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.ContainerIterators.CollectingIteratorEvaluator
net.ssehub.easy.varModel.cstEvaluation.ContainerIterators.CollectIteratorEvaluator
- All Implemented Interfaces:
IIteratorEvaluator
- Enclosing class:
ContainerIterators
static class ContainerIterators.CollectIteratorEvaluator
extends ContainerIterators.CollectingIteratorEvaluator
Implements
Container.SELECT and
Container.REJECT.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectIteratorEvaluator(BooleanValue condition) Creates a collect iterator evaluator. -
Method Summary
Modifier and TypeMethodDescriptionaggregate(EvaluationAccessor result, Value iter, EvaluationAccessor value, Map<Object, Object> data) Aggregatevaluetoresult.Methods inherited from class net.ssehub.easy.varModel.cstEvaluation.ContainerIterators.CollectingIteratorEvaluator
getStartResult, postProcessResult
-
Field Details
-
condition
-
-
Constructor Details
-
CollectIteratorEvaluator
CollectIteratorEvaluator(BooleanValue condition) Creates a collect iterator evaluator.- Parameters:
condition- the boolean value that must be met by the iterated expression results
-
-
Method Details
-
aggregate
public BooleanValue aggregate(EvaluationAccessor result, Value iter, EvaluationAccessor value, Map<Object, Object> data) throws ValueDoesNotMatchTypeExceptionDescription copied from interface:IIteratorEvaluatorAggregatevaluetoresult.- Parameters:
result- the aggregating resultiter- the current value of the iteratorvalue- the value to be aggregateddata- arbitrary data to be hold while actually evaluating the function- Returns:
- a boolean value to indicate whether iteration/evaluation shall stop (
trueif iteration shall stop due to this evaluation,falseelse), a collection of values as instance ofListWrapperValuewhere to go on - Throws:
ValueDoesNotMatchTypeException- in case of type compatibility problems
-