Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Drools Planner distribution 6.0.0.Alpha9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.planner.examples.cloudbalancing.solver.score
Class CloudBalancingSimpleScoreCalculator

    java.lang.Object
      org.drools.planner.examples.cloudbalancing.solver.score.CloudBalancingSimpleScoreCalculator

All Implemented Interfaces:
  SimpleScoreCalculator<CloudBalance>

    public class CloudBalancingSimpleScoreCalculator

extends Object
implements SimpleScoreCalculator<CloudBalance>

Constructor Summary
`CloudBalancingSimpleScoreCalculator()`

Method Summary
`HardSoftScore` | `calculateScore(CloudBalance cloudBalance)` A very simple implementation.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CloudBalancingSimpleScoreCalculator

    public CloudBalancingSimpleScoreCalculator()

Method Detail

### calculateScore

    public HardSoftScore calculateScore(CloudBalance cloudBalance)

  A very simple implementation. The double loop can easily be removed by using Maps as shown in `CloudBalancingMapBasedSimpleScoreCalculator.calculateScore(CloudBalance)`.

  Specified by:
    `calculateScore` in interface `SimpleScoreCalculator<CloudBalance>`
  Parameters:
    `cloudBalance` - never null
  Returns:
    never null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Drools Planner distribution 6.0.0.Alpha9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.