01: package example.nz.org.take.compiler.userv.generated;
02:
03: /**
04: * Class generated by the take compiler.
05: * In this class the aggregation functions referenced in the knowledge base are defined.
06: * @version Mon Feb 11 13:49:15 NZDT 2008
07: */
08: @SuppressWarnings("unchecked")
09: public class Aggregations {
10: /**
11: * Method generated for aggregation function eligibilityScore
12: * code generated using velocity template AggregationFunctionSUM.vm
13: */
14: public static long eligibilityScore(
15: example.nz.org.take.compiler.userv.domainmodel.Car arg0,
16: example.nz.org.take.compiler.userv.domainmodel.Driver arg1) {
17:
18: long _value = 0;
19: nz.org.take.rt.ResultSet<PolicyEligibilityScore> _result = KBFragement_getPolicyEligibilityScore
20: .getPolicyEligibilityScore(arg0, arg1);
21: while (_result.hasNext()) {
22: _value = _value + _result.next().score;
23: }
24: _result.close();
25: return _value;
26: }
27: }
|