|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.mycbr.core.casebase.Range
de.dfki.mycbr.core.casebase.DoubleRange
public final class DoubleRange
Holds FloatAttributes for a given FloatDescription. Each time a float is used in a case the FloatRange returns a reference to the corresponding DoubleAttribute object or creates a new one. SpecialAttributes are also handled for each SpecialAttribute used in the current project
| Constructor Summary | |
|---|---|
DoubleRange(Project prj,
DoubleDesc doubleDesc)
Initializes internal data structures according to maximal number of integer attributes (given by DoubleDesc.getMax() -
DoubleDesc.getMin()). |
|
| Method Summary | |
|---|---|
boolean |
containsDouble(java.lang.Double value)
Returns true, if there is a DoubleAttribute contained in this range which has the specified value. |
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified Object obj. |
DoubleDesc |
getDesc()
Gets the double description for attributes maintained by this range. |
java.util.Collection<DoubleAttribute> |
getDoubles()
Gets all values contained in this range. |
DoubleAttribute |
getDoubleValue(double value)
Returns the DoubleAttribute associated with the given double. |
SimpleAttribute |
getValue(double value)
Returns an attribute representing the given number. |
Attribute |
parseValue(java.lang.String string)
|
void |
update(java.util.Observable ob,
java.lang.Object o)
|
| Methods inherited from class de.dfki.mycbr.core.casebase.Range |
|---|
getProject, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleRange(Project prj,
DoubleDesc doubleDesc)
DoubleDesc.getMax() -
DoubleDesc.getMin()).
prj - the project this range belongs todoubleDesc - the double description for attributes maintained by this range| Method Detail |
|---|
public DoubleDesc getDesc()
public boolean containsDouble(java.lang.Double value)
value - the double to be checked
public DoubleAttribute getDoubleValue(double value)
value - the value for which the corresponding DoubleAttribute should be
returned
public java.util.Collection<DoubleAttribute> getDoubles()
public Attribute getAttribute(java.lang.Object obj)
Object obj.
obj is expected to be of type Double, Double or String.
Returns result of getDoubleValue(double) if obj is of type
Double, Double result of Project.getSpecialAttribute(String) if obj is
of type SpecialAttribute, else returns null. Is needed for
MultipleRange.
getAttribute in class Rangeobj - representing Double or SpecialAttribute
public SimpleAttribute getValue(double value)
getDoubleValue(double).
value - the value of the double attribute to be returned
public void update(java.util.Observable ob,
java.lang.Object o)
public Attribute parseValue(java.lang.String string)
string - the string which should be used for parsing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||