org.camunda.bpm.dmn.engine.impl.hitpolicy
Class AbstractDmnHitPolicyNumberAggregator

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.hitpolicy.AbstractDmnHitPolicyNumberAggregator
All Implemented Interfaces:
DmnHitPolicyAggregator
Direct Known Subclasses:
CollectMaxAggregator, CollectMinAggregator, CollectSumAggregator

public abstract class AbstractDmnHitPolicyNumberAggregator
extends Object
implements DmnHitPolicyAggregator


Field Summary
static DmnHitPolicyLogger LOG
           
 
Constructor Summary
AbstractDmnHitPolicyNumberAggregator()
           
 
Method Summary
 Number aggregate(List<Object> outputValues)
          Aggregates the decision output to the decision result.
protected abstract  Number aggregateDoubleValues(List<Double> doubleValues)
           
protected abstract  Number aggregateIntegerValues(List<Integer> intValues)
           
protected abstract  Number aggregateLongValues(List<Long> longValues)
           
protected  Number aggregateNumberValues(List<Object> values)
           
protected  List<Double> convertValuesToDouble(List<Object> values)
           
protected  List<Integer> convertValuesToInteger(List<Object> values)
           
protected  List<Long> convertValuesToLong(List<Object> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final DmnHitPolicyLogger LOG
Constructor Detail

AbstractDmnHitPolicyNumberAggregator

public AbstractDmnHitPolicyNumberAggregator()
Method Detail

aggregate

public Number aggregate(List<Object> outputValues)
Description copied from interface: DmnHitPolicyAggregator
Aggregates the decision output to the decision result.

Specified by:
aggregate in interface DmnHitPolicyAggregator
Parameters:
outputValues - the values of the decision outputs
Returns:
the aggregated result value

aggregateNumberValues

protected Number aggregateNumberValues(List<Object> values)

aggregateIntegerValues

protected abstract Number aggregateIntegerValues(List<Integer> intValues)

aggregateLongValues

protected abstract Number aggregateLongValues(List<Long> longValues)

aggregateDoubleValues

protected abstract Number aggregateDoubleValues(List<Double> doubleValues)

convertValuesToInteger

protected List<Integer> convertValuesToInteger(List<Object> values)

convertValuesToLong

protected List<Long> convertValuesToLong(List<Object> values)

convertValuesToDouble

protected List<Double> convertValuesToDouble(List<Object> values)


Copyright © 2015 camunda services GmbH. All rights reserved.