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.benchmark.core
Class ProblemBenchmark

    java.lang.Object
      org.drools.planner.benchmark.core.ProblemBenchmark

    public class ProblemBenchmark

extends Object

Represents 1 problem instance (data set) benchmarked on multiple `Solver` configurations.

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

Constructor Summary
`ProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark)`

Method Summary
`void` | `benchmarkingEnded()`
`void` | `benchmarkingStarted()`
`boolean` | `equals(Object o)`
`Long` | `getAverageUsedMemoryAfterInputSolution()`
`Integer` | `getFailureCount()`
`File` | `getInputSolutionFile()`
`String` | `getName()`
`DefaultPlannerBenchmark` | `getPlannerBenchmark()`
`ProblemIO` | `getProblemIO()`
`File` | `getProblemReportDirectory()`
`Long` | `getProblemScale()`
`List<ProblemStatistic>` | `getProblemStatisticList()`
`List<SingleBenchmark>` | `getSingleBenchmarkList()`
`SingleBenchmark` | `getWinningSingleBenchmark()`
`SingleBenchmark` | `getWorstSingleBenchmark()`
`boolean` | `hasAnyFailure()`
`boolean` | `hasAnyProblemStatistic()`
`boolean` | `hasAnySuccess()`
`int` | `hashCode()`
`boolean` | `isWriteOutputSolutionEnabled()`
`Solution` | `readPlanningProblem()`
`void` | `registerProblemScale(long registeringProblemScale)` HACK to avoid loading the planningProblem just to extract it's problemScale.
`void` | `setInputSolutionFile(File inputSolutionFile)`
`void` | `setName(String name)`
`void` | `setProblemIO(ProblemIO problemIO)`
`void` | `setProblemStatisticList(List<ProblemStatistic> problemStatisticList)`
`void` | `setSingleBenchmarkList(List<SingleBenchmark> singleBenchmarkList)`
`void` | `setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled)`
`long` | `warmUp(long startingTimeMillis, long warmUpTimeMillisSpend, long timeLeft)`
`void` | `writeOutputSolution(SingleBenchmark singleBenchmark, Solution outputSolution)`

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

Field Detail

### logger

    protected final transient org.slf4j.Logger logger

Constructor Detail

### ProblemBenchmark

    public ProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark)

Method Detail

### getPlannerBenchmark

    public DefaultPlannerBenchmark getPlannerBenchmark()

### getName

    public String getName()

### setName

    public void setName(String name)

### getProblemIO

    public ProblemIO getProblemIO()

### setProblemIO

    public void setProblemIO(ProblemIO problemIO)

### isWriteOutputSolutionEnabled

    public boolean isWriteOutputSolutionEnabled()

### setWriteOutputSolutionEnabled

    public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled)

### getInputSolutionFile

    public File getInputSolutionFile()

### getProblemReportDirectory

    public File getProblemReportDirectory()

### setInputSolutionFile

    public void setInputSolutionFile(File inputSolutionFile)

### getProblemStatisticList

    public List<ProblemStatistic> getProblemStatisticList()

### setProblemStatisticList

    public void setProblemStatisticList(List<ProblemStatistic> problemStatisticList)

### getSingleBenchmarkList

    public List<SingleBenchmark> getSingleBenchmarkList()

### setSingleBenchmarkList

    public void setSingleBenchmarkList(List<SingleBenchmark> singleBenchmarkList)

### getProblemScale

    public Long getProblemScale()

### getAverageUsedMemoryAfterInputSolution

    public Long getAverageUsedMemoryAfterInputSolution()

### getFailureCount

    public Integer getFailureCount()

### getWinningSingleBenchmark

    public SingleBenchmark getWinningSingleBenchmark()

### getWorstSingleBenchmark

    public SingleBenchmark getWorstSingleBenchmark()

### benchmarkingStarted

    public void benchmarkingStarted()

### warmUp

    public long warmUp(long startingTimeMillis,
                       long warmUpTimeMillisSpend,
                       long timeLeft)

### readPlanningProblem

    public Solution readPlanningProblem()

### writeOutputSolution

    public void writeOutputSolution(SingleBenchmark singleBenchmark,
                                    Solution outputSolution)

### benchmarkingEnded

    public void benchmarkingEnded()

### hasAnyFailure

    public boolean hasAnyFailure()

### hasAnySuccess

    public boolean hasAnySuccess()

### hasAnyProblemStatistic

    public boolean hasAnyProblemStatistic()

### equals

    public boolean equals(Object o)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### registerProblemScale

    public void registerProblemScale(long registeringProblemScale)

  HACK to avoid loading the planningProblem just to extract it's problemScale. Called multiple times, for every `SingleBenchmark` of this `ProblemBenchmark`.

  Parameters:
    `registeringProblemScale` - >= 0

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.