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 Object
implements IIteratorEvaluator
Implements an evaluator adaptor for collecting operations.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStartResult(IDatatype type, IDatatype iterType) Returns the start result.voidpostProcessResult(EvaluationAccessor result, Map<Object, 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, waitMethods inherited from interface net.ssehub.easy.varModel.cstEvaluation.IIteratorEvaluator
aggregate
-
Constructor Details
-
CollectingIteratorEvaluator
CollectingIteratorEvaluator()
-
-
Method Details
-
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, Map<Object, Object> data) throws ValueDoesNotMatchTypeExceptionDescription 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
-