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

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

    java.lang.Object
      org.optaplanner.examples.cloudbalancing.solver.score.CloudBalancingEasyScoreCalculator

All Implemented Interfaces:
  EasyScoreCalculator<CloudBalance>

    public class CloudBalancingEasyScoreCalculator

extends Object
implements EasyScoreCalculator<CloudBalance>

Constructor Summary
`CloudBalancingEasyScoreCalculator()`

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

### CloudBalancingEasyScoreCalculator

    public CloudBalancingEasyScoreCalculator()

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 `CloudBalancingMapBasedEasyScoreCalculator.calculateScore(CloudBalance)`.

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

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

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