|
||||||||||
| 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.IntegerDesc
public class IntegerDesc
Description for Integer attributes. Restricts the values that can be used as attributes of this description by minValue and maxValue
| Constructor Summary | |
|---|---|
IntegerDesc(Concept owner,
java.lang.String name,
int min,
int max)
Initializes this with the given name. |
|
| Method Summary | |
|---|---|
AdvancedIntegerFct |
addAdvancedIntegerFct(java.lang.String name,
boolean active)
Creates a new AdvancedNumberFct for the given description. |
IntegerFct |
addIntegerFct(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. |
SimpleAttribute |
getIntegerAttribute(java.lang.Integer value)
Returns IntegerAttribute object representing the specified
value. |
java.lang.Integer |
getMax()
Gets the maximal Integer that can be used as value for this description |
java.lang.Integer |
getMin()
Gets the minimal Integer that can be used as value for this description |
void |
setMax(int max)
Sets the max value which may appear as Integer specified for this description to max. |
void |
setMin(int min)
Sets the minimal value which may appear as Integer 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 IntegerDesc(Concept owner,
java.lang.String name,
int min,
int max)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public SimpleAttribute getIntegerAttribute(java.lang.Integer value)
IntegerAttribute object representing the specified
value.
value - the Integer representing the value that should be returned
public void setMin(int min)
min - minimal value appearing as Integer for this descriptionpublic java.lang.Integer getMin()
public void setMax(int max)
max - max value appearing as Integer for this descriptionpublic java.lang.Integer getMax()
public IntegerFct addIntegerFct(java.lang.String name,
boolean active)
name - the description for which a new function should be created
public AdvancedIntegerFct addAdvancedIntegerFct(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 | |||||||||