|
||||||||||
| 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.FloatDesc
public class FloatDesc
Description for Number attributes. Restricts the values that can be used as attributes of this description by minValue and maxValue
| Constructor Summary | |
|---|---|
FloatDesc(Concept owner,
java.lang.String name,
float min,
float max)
Initializes this with the given name. |
|
| Method Summary | |
|---|---|
AdvancedFloatFct |
addAdvancedFloatFct(java.lang.String name,
boolean active)
Creates a new AdvancedNumberFct for the given description. |
FloatFct |
addFloatFct(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. |
float |
getMax()
Gets the maximal Number that can be used as value for this description |
float |
getMin()
Gets the minimal Number that can be used as value for this description |
SimpleAttribute |
getNumberAttribute(float value)
Returns NumberAttribute object representing the specified
value. |
FloatRange |
getRange()
Gets the range maintaining the number attributes of this description |
void |
setMax(float max)
Sets the max value which may appear as Number specified for this description to max. |
void |
setMin(float 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 FloatDesc(Concept owner,
java.lang.String name,
float min,
float max)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public SimpleAttribute getNumberAttribute(float value)
NumberAttribute object representing the specified
value.
value - the Number representing the value that should be returned
public void setMin(float min)
min - minimal value appearing as Number for this descriptionpublic float getMin()
public void setMax(float max)
max - max value appearing as Number for this descriptionpublic float getMax()
public FloatRange getRange()
public FloatFct addFloatFct(java.lang.String name,
boolean active)
name - the description for which a new function should be created
public AdvancedFloatFct addAdvancedFloatFct(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 | |||||||||