Class ContainerIterators.CollectingIteratorEvaluator
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.ContainerIterators.CollectingIteratorEvaluator
-
- All Implemented Interfaces:
IIteratorEvaluator
- Direct Known Subclasses:
ContainerIterators.ClosureIteratorEvaluator,ContainerIterators.CollectIteratorEvaluator
- Enclosing class:
- ContainerIterators
abstract static class ContainerIterators.CollectingIteratorEvaluator extends java.lang.Object implements IIteratorEvaluator
Implements an evaluator adaptor for collecting operations.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description CollectingIteratorEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValuegetStartResult(IDatatype type, IDatatype iterType)Returns the start result.voidpostProcessResult(EvaluationAccessor result, java.util.Map<java.lang.Object,java.lang.Object> data)Called to post-process the actual result at the end after the last iteration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.varModel.cstEvaluation.IIteratorEvaluator
aggregate
-
-
-
-
Method Detail
-
getStartResult
public Value getStartResult(IDatatype type, IDatatype iterType) throws ValueDoesNotMatchTypeException
Description copied from interface:IIteratorEvaluatorReturns the start result. Used in case of all operations where the start result is implicitly clear from the operation itself and not explicitly defined in the model.- Specified by:
getStartResultin interfaceIIteratorEvaluator- Parameters:
type- the type of the return valueiterType- the type of the iterator expression- Returns:
- the start value (must comply to
type) - Throws:
ValueDoesNotMatchTypeException- in case of type compatibility problems
-
postProcessResult
public void postProcessResult(EvaluationAccessor result, java.util.Map<java.lang.Object,java.lang.Object> data) throws ValueDoesNotMatchTypeException
Description copied from interface:IIteratorEvaluatorCalled to post-process the actual result at the end after the last iteration.- Specified by:
postProcessResultin interfaceIIteratorEvaluator- Parameters:
result- the aggregated result so fardata- arbitrary data to be hold while actually evaluating the function- Throws:
ValueDoesNotMatchTypeException- in case of type compatibility problems
-
-