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
|
logger
protected final transient org.slf4j.Logger logger
ProblemBenchmark
public ProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark)
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
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.