public class AlgorithmXml extends java.lang.Object implements java.lang.Comparable<AlgorithmXml>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
algorithm
Name of the algorithm.
|
java.util.Set<InstanceResultXml> |
results
Sets of results.
|
Modifier | Constructor and Description |
---|---|
|
AlgorithmXml()
Default constructor.
|
protected |
AlgorithmXml(java.lang.String algorithm)
Constructor by parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addResult(long seed,
long time,
int iterations,
int QPs,
double upperBound,
double lowerBound,
double rootRelaxation)
Adds a new result for this algorithm.
|
int |
compareTo(AlgorithmXml o) |
protected boolean |
exists(long seed)
Checks whether a given instance exists in the file.
|
public java.lang.String algorithm
public java.util.Set<InstanceResultXml> results
public AlgorithmXml()
protected AlgorithmXml(java.lang.String algorithm)
algorithm
- The algorithm.protected void addResult(long seed, long time, int iterations, int QPs, double upperBound, double lowerBound, double rootRelaxation)
seed
- The seed of the random number generator. time
- The time used to solve the instance. iterations
- The number of iterations used. QPs
- The number of QPs. upperBound
- The upper bound. lowerBound
- The lower bound. rootRelaxation
- The root relaxation.protected boolean exists(long seed)
seed
- The seed of the random number generator. public int compareTo(AlgorithmXml o)
compareTo
in interface java.lang.Comparable<AlgorithmXml>