|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.dfki.mycbr.core.model.AttributeDesc
de.dfki.mycbr.core.model.SimpleAttDesc
de.dfki.mycbr.core.model.DoubleDesc
public class DoubleDesc
Description for Number attributes. Restricts the values that can be used as attributes of this description by minValue and maxValue
| Constructor Summary | |
|---|---|
DoubleDesc(Concept owner,
java.lang.String name,
double min,
double max)
Initializes this with the given name. |
|
| Method Summary | |
|---|---|
AdvancedDoubleFct |
addAdvancedDoubleFct(java.lang.String name,
boolean active)
Creates a new AdvancedNumberFct for the given description. |
DoubleFct |
addDoubleFct(java.lang.String name,
boolean active)
Creates a new NumberFct for the given description. |
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description can override the given attribute description |
boolean |
fits(Attribute att)
Checks whether the given attribute fits this. |
boolean |
fitsSingle(Attribute att)
Checks whether a single attribute fits the constraints for this. |
double |
getMax()
Gets the maximal Number that can be used as value for this description |
double |
getMin()
Gets the minimal Number that can be used as value for this description |
SimpleAttribute |
getNumberAttribute(double value)
Returns NumberAttribute object representing the specified
value. |
DoubleRange |
getRange()
Gets the range maintaining the number attributes of this description |
void |
setMax(double max)
Sets the max value which may appear as Number specified for this description to max. |
void |
setMin(double min)
Sets the minimal value which may appear as Number specified for this description to min. |
| Methods inherited from class de.dfki.mycbr.core.model.SimpleAttDesc |
|---|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFct |
| Methods inherited from class de.dfki.mycbr.core.model.AttributeDesc |
|---|
delete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleDesc(Concept owner,
java.lang.String name,
double min,
double max)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public SimpleAttribute getNumberAttribute(double value)
NumberAttribute object representing the specified
value.
value - the Number representing the value that should be returned
public void setMin(double min)
min - minimal value appearing as Number for this descriptionpublic double getMin()
public void setMax(double max)
max - max value appearing as Number for this descriptionpublic double getMax()
public DoubleRange getRange()
public DoubleFct addDoubleFct(java.lang.String name,
boolean active)
name - the description for which a new function should be created
public AdvancedDoubleFct addAdvancedDoubleFct(java.lang.String name,
boolean active)
name - the description for which a new function should be created
public boolean canOverride(AttributeDesc desc)
AttributeDesc
canOverride in class SimpleAttDescpublic boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)
fits in class AttributeDescatt -
public boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)
fitsSingle in class AttributeDescatt - the attribute which should be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||