|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.gui.util.Configuration
public class Configuration
This class represents a candidate configuration undergoing the F-Race.
Constructor Summary | |
---|---|
Configuration(java.lang.String name)
Creates a new Configuration . |
Method Summary | |
---|---|
void |
add(java.lang.String name,
Observation observation)
Adds an observation to this configuration. |
int |
compareTo(Configuration o)
Compares this configuration against the specified configuration. |
java.lang.String |
getName()
Returns the configuration name. |
Observation |
getObservation(java.lang.String name)
Returns the obsservation associated with the specified name. |
double |
getRank()
Returns the value of the accumulated rank of this configuration. |
void |
setRank(double rank)
Sets the accumulated rank of this configuration over the instances used in the current step of the race. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration(java.lang.String name)
Configuration
.
name
- the configuration name.Method Detail |
---|
public java.lang.String getName()
public void add(java.lang.String name, Observation observation)
name
- the name of the observation, which usually correspond to the
name of the instances (test).observation
- the observation to add.public Observation getObservation(java.lang.String name)
name
- the name of the observation.
public double getRank()
public void setRank(double rank)
rank
- the rank to set.public int compareTo(Configuration o)
compareTo
in interface java.lang.Comparable<Configuration>
0
if both configuration have the same accumulated
rank; a negative integer if this configuration has a higher
(worse) rank; a positive integer if this configuration has a
lower (better) rank.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |