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

## org.optaplanner.examples.cloudbalancing.solver.score
Class CloudBalancingSimpleScoreCalculator

    java.lang.Object
      org.optaplanner.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
| OptaPlanner distribution 6.0.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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