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

## org.optaplanner.benchmark.impl
Class SingleBenchmark

    java.lang.Object
      org.optaplanner.benchmark.impl.SingleBenchmark

All Implemented Interfaces:
  Callable<SingleBenchmark>

    public class SingleBenchmark

extends Object
implements Callable<SingleBenchmark>

Represents 1 benchmark for 1 `Solver` configuration for 1 problem instance (data set).

Field Summary
`protected org.slf4j.Logger` | `logger`

Constructor Summary
`SingleBenchmark(SolverBenchmark solverBenchmark, ProblemBenchmark problemBenchmark)`

Method Summary
`SingleBenchmark` | `call()`
`Long` | `getAverageCalculateCountPerSecond()`
`long` | `getCalculateCount()`
`Throwable` | `getFailureThrowable()`
`String` | `getName()`
`Integer` | `getPlanningEntityCount()`
`ProblemBenchmark` | `getProblemBenchmark()`
`Integer` | `getRanking()`
`Score` | `getScore()`
`SingleStatistic` | `getSingleStatistic(StatisticType statisticType)`
`SolverBenchmark` | `getSolverBenchmark()`
`Boolean` | `getSucceeded()`
`long` | `getTimeMillisSpend()`
`Long` | `getUsedMemoryAfterInputSolution()`
`Score` | `getWinningScoreDifference()`
`ScoreDifferencePercentage` | `getWorstScoreDifferencePercentage()`
`boolean` | `isFailure()`
`boolean` | `isScoreFeasible()`
`boolean` | `isSuccess()`
`boolean` | `isWinner()`
`void` | `setFailureThrowable(Throwable failureThrowable)`
`void` | `setRanking(Integer ranking)`
`void` | `setScore(Score score)`
`void` | `setSucceeded(Boolean succeeded)`
`void` | `setWinningScoreDifference(Score winningScoreDifference)`
`void` | `setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage)`
`String` | `toString()`

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

Field Detail

### logger

    protected final transient org.slf4j.Logger logger

Constructor Detail

### SingleBenchmark

    public SingleBenchmark(SolverBenchmark solverBenchmark,
                           ProblemBenchmark problemBenchmark)

Method Detail

### getSolverBenchmark

    public SolverBenchmark getSolverBenchmark()

### getProblemBenchmark

    public ProblemBenchmark getProblemBenchmark()

### getPlanningEntityCount

    public Integer getPlanningEntityCount()

### getUsedMemoryAfterInputSolution

    public Long getUsedMemoryAfterInputSolution()

  Returns:
    null if `DefaultPlannerBenchmark.hasMultipleParallelBenchmarks()` return true

### getScore

    public Score getScore()

### setScore

    public void setScore(Score score)

### getWinningScoreDifference

    public Score getWinningScoreDifference()

### setWinningScoreDifference

    public void setWinningScoreDifference(Score winningScoreDifference)

### getWorstScoreDifferencePercentage

    public ScoreDifferencePercentage getWorstScoreDifferencePercentage()

### setWorstScoreDifferencePercentage

    public void setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage)

### getTimeMillisSpend

    public long getTimeMillisSpend()

### getCalculateCount

    public long getCalculateCount()

### getRanking

    public Integer getRanking()

### setRanking

    public void setRanking(Integer ranking)

### getSucceeded

    public Boolean getSucceeded()

### setSucceeded

    public void setSucceeded(Boolean succeeded)

### getFailureThrowable

    public Throwable getFailureThrowable()

### setFailureThrowable

    public void setFailureThrowable(Throwable failureThrowable)

### getName

    public String getName()

### call

    public SingleBenchmark call()

  Specified by:
    `call` in interface `Callable<SingleBenchmark>`

### isSuccess

    public boolean isSuccess()

### isFailure

    public boolean isFailure()

### isScoreFeasible

    public boolean isScoreFeasible()

### getAverageCalculateCountPerSecond

    public Long getAverageCalculateCountPerSecond()

### isWinner

    public boolean isWinner()

### getSingleStatistic

    public SingleStatistic getSingleStatistic(StatisticType statisticType)

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR5
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.