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
ImplementsContainer.SELECTandContainer.REJECT.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanValuecondition
-
Constructor Summary
Constructors Constructor Description CollectIteratorEvaluator(BooleanValue condition)Creates a collect iterator evaluator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanValueaggregate(EvaluationAccessor result, Value iter, EvaluationAccessor value, java.util.Map<java.lang.Object,java.lang.Object> data)Aggregatevaluetoresult.-
Methods inherited from class net.ssehub.easy.varModel.cstEvaluation.ContainerIterators.CollectingIteratorEvaluator
getStartResult, postProcessResult
-
-
-
-
Field Detail
-
condition
private BooleanValue condition
-
-
Constructor Detail
-
CollectIteratorEvaluator
CollectIteratorEvaluator(BooleanValue condition)
Creates a collect iterator evaluator.- Parameters:
condition- the boolean value that must be met by the iterated expression results
-
-
Method Detail
-
aggregate
public BooleanValue aggregate(EvaluationAccessor result, Value iter, EvaluationAccessor value, java.util.Map<java.lang.Object,java.lang.Object> data) throws ValueDoesNotMatchTypeException
Description 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
-
-