public class Problem
extends java.lang.Object
MetricDataset
objects, for example. Each data object then creates and gets
evaluated by a solution.Constructor and Description |
---|
Problem()
Create a new instance of Problem.
|
Modifier and Type | Method and Description |
---|---|
void |
addProblem(org.ai_heuristic.eval.metric.MetricDataset thisProblem)
Add the specified task to the list.
|
void |
clearProblemSet()
Clear the list of problems.
|
org.ai_heuristic.eval.metric.MetricDataset |
getProblem(java.lang.String problemName)
Get the problem with the specified key value.
|
java.util.ArrayList<java.lang.String> |
getProblemNames()
Get th list of problem names or IDs.
|
java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> |
getProblemSet()
Get the list of sub-problems this problem requires.
|
boolean |
hasProblemSet()
Return true if this instance has a litst of problems.
|
void |
setProblemSet(java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> thisProblemSet)
Set the list of problems this problem requires.
|
void |
setProblemSet(java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> thisProblemSet)
Set the list of problems this problem requires.
|
public boolean hasProblemSet()
public void clearProblemSet()
public void setProblemSet(java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> thisProblemSet)
thisProblemSet
- the set of problems to add.public void setProblemSet(java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> thisProblemSet)
thisProblemSet
- the set of problems to add.public void addProblem(org.ai_heuristic.eval.metric.MetricDataset thisProblem)
thisProblem
- the problem to add. Use the dataset name as the hash table entry key.
If there is any ordering to the sub-problems then they should be added
in that order. This can be of type Solution or any other Object.public java.util.ArrayList<java.lang.String> getProblemNames()
public org.ai_heuristic.eval.metric.MetricDataset getProblem(java.lang.String problemName)
problemName
- problem name key value.public java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> getProblemSet()