|
||||||||||
| 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.IntervalDesc
public class IntervalDesc
The allow computation of similarity between intervals there must be a minimal and a maximal value that restrict the possible interval bounds.
| Constructor Summary | |
|---|---|
IntervalDesc(Concept owner,
java.lang.String name,
java.lang.Number minValue,
java.lang.Number maxValue)
initializes this with the given name. |
|
| Method Summary | |
|---|---|
IntervalFct |
addIntervalFct(java.lang.String name,
boolean active)
Creates a new SymbolFct 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. |
IntervalAttribute |
getIntervalAttribute(java.lang.Number minValue,
java.lang.Number maxValue)
Returns IntervalAttribute object representing the specified
interval. |
java.lang.Number |
getMax()
Returns the maximal value which may appear in an interval specified for this description. |
java.lang.Number |
getMin()
Returns the minimal value which may appear in an interval specified for this description. |
void |
setMax(java.lang.Number maxValue)
Sets the maximal value which may appear in an interval specified for this description. |
void |
setMin(java.lang.Number minValue)
Sets the minimal value which may appear in an interval 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 IntervalDesc(Concept owner,
java.lang.String name,
java.lang.Number minValue,
java.lang.Number maxValue)
throws java.lang.Exception
owner - the owner of thisname - the name to be used for this description.minValue - number specifying the lower bound for attribute values
for thismaxValue - number specifying the upper bound for attribute values
for this
java.lang.Exception - if min is not less than or equal to max| Method Detail |
|---|
public final IntervalAttribute getIntervalAttribute(java.lang.Number minValue,
java.lang.Number maxValue)
IntervalAttribute object representing the specified
interval.
minValue - lower bound of the intervalmaxValue - upper bound of the interval
public final java.lang.Number getMin()
public final void setMin(java.lang.Number minValue)
minValue - minimal value appearing in interval for this attributepublic final java.lang.Number getMax()
public final void setMax(java.lang.Number maxValue)
maxValue - maximal value appearing in interval for this attribute
public final IntervalFct addIntervalFct(java.lang.String name,
boolean active)
name - the name of the new functionactive - if true, the new function is used in the active
amalgamation of the owner of this
public final boolean canOverride(AttributeDesc desc)
AttributeDesc
canOverride in class SimpleAttDescdesc - the description which should be overridden by this
public final boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)
fits in class AttributeDescatt - the attribute which should be checked for fitting this
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 | |||||||||