|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.gui.util.Observation
public class Observation
This class represents the result of a configuration on a given instance.
Configuration
Constructor Summary | |
---|---|
Observation(double value)
Creates a new Observation . |
Method Summary | |
---|---|
int |
compareTo(Observation o)
Compares this observation's value to the specified observation's value. |
double |
getRank()
Returns the rank of this observation. |
double |
getValue()
Returns the performance on this observation. |
void |
setRank(double rank)
Sets the rank of this observation. |
void |
setValue(double value)
Sets the performance on this observation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Observation(double value)
Observation
.
value
- the performance achieved by the configuration.Method Detail |
---|
public int compareTo(Observation o)
compareTo
in interface java.lang.Comparable<Observation>
o
- the observation to be compared.
0
if both values are equal; negative integer if
this observation's value is greater than the specified
observation's value ; and positive integer if this
configuration's value is less than the specified observation's
value.public double getRank()
public void setRank(double rank)
rank
- the rank to set.public double getValue()
public void setValue(double value)
value
- the value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |