@Test public void addEventToCalculationsSimpleTest() { addInitialTrustScoreEvents(); double bucketSumScore = bucketInitialTrustScoreEventsService.getBucketSumScore(bucketInitialTrustScoreEventsData); isTrustScoreValueValid(bucketSumScore); }
@Override public double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData) { BucketInitialTrustScoreEventsCalculator bucketCalculator = new BucketInitialTrustScoreEventsCalculator(bucketInitialTrustScoreEventsData); bucketCalculator.decayScores(bucketInitialTrustScoreEventsData); return bucketCalculator.getBucketSumScore(); }
BucketInitialTrustScoreEventsService implements IBucketEventService<InitialTrustScoreEventsData, BucketInitialTrustScoreEventsData> { @Override public double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData) { BucketInitialTrustScoreEventsCalculator bucketCalculator = new BucketInitialTrustScoreEventsCalculator(bucketInitialTrustScoreEventsData); bucketCalculator.decayScores(bucketInitialTrustScoreEventsData); return bucketCalculator.getBucketSumScore(); } }
BucketInitialTrustScoreEventsService implements IBucketEventService<InitialTrustScoreEventsData, BucketInitialTrustScoreEventsData> { @Override public double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData) { BucketInitialTrustScoreEventsCalculator bucketCalculator = new BucketInitialTrustScoreEventsCalculator(bucketInitialTrustScoreEventsData); bucketCalculator.decayScores(bucketInitialTrustScoreEventsData); return bucketCalculator.getBucketSumScore(); }  }
BucketInitialTrustScoreEventsService implements IBucketEventService<InitialTrustScoreEventsData, BucketInitialTrustScoreEventsData> { @Override public double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData) { BucketInitialTrustScoreEventsCalculator bucketCalculator = new BucketInitialTrustScoreEventsCalculator(bucketInitialTrustScoreEventsData); bucketCalculator.decayScores(bucketInitialTrustScoreEventsData); return bucketCalculator.getBucketSumScore(); }  @Override BucketInitialTrustScoreEventsData addEventToCalculations(InitialTrustScoreEventsData initialTrustScoreEventsData,
                                                                    BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData); @Override double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData); @Override EventType getBucketEventType(); void init(RulesData rulesData); }
BucketInitialTrustScoreEventsService implements IBucketEventService<InitialTrustScoreEventsData, BucketInitialTrustScoreEventsData> { @Override public double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData) { BucketInitialTrustScoreEventsCalculator bucketCalculator = new BucketInitialTrustScoreEventsCalculator(bucketInitialTrustScoreEventsData); bucketCalculator.decayScores(bucketInitialTrustScoreEventsData); return bucketCalculator.getBucketSumScore(); }  @Override BucketInitialTrustScoreEventsData addEventToCalculations(InitialTrustScoreEventsData initialTrustScoreEventsData,
                                                                    BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData); @Override double getBucketSumScore(BucketInitialTrustScoreEventsData bucketInitialTrustScoreEventsData); @Override EventType getBucketEventType(); void init(RulesData rulesData);  }