|
||||||||||
| 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.SymbolDesc
de.dfki.mycbr.core.model.BooleanDesc
public class BooleanDesc
Description for boolean attributes. This description does not define restrictions for its values, since there is only one attribute for true and one attribute representing false. BooleanDesc extends SymbolDesc in order to use the table function defined for symbol attributes for boolean similarity computations.
| Constructor Summary | |
|---|---|
BooleanDesc(Concept owner,
java.lang.String name)
Initializes this with the given name. |
|
| Method Summary | |
|---|---|
SymbolFct |
addBooleanFct(java.lang.String name,
boolean active)
Creates a new SymbolFct for the given description. |
SymbolAttribute |
addSymbol(java.lang.String value)
Does nothing because you cannot add other values than true and false to a boolean description |
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description can override the given attribute description |
Attribute |
getAttribute(java.lang.Object value)
Returns SymbolAttribute object representing the specified
value. |
SymbolAttribute |
getBooleanAttribute(java.lang.Boolean value)
Returns BooleanAttribute object representing the specified
value. |
java.lang.Integer |
getIndexOf(SimpleAttribute att)
|
boolean |
isAllowedValue(java.lang.String v)
Tells you whether the specified string is an allowed value for this or not. |
void |
removeSymbol(java.lang.String value)
Does nothing because you cannot delete a boolean value |
boolean |
renameValue(java.lang.String oldValue,
java.lang.String newValue)
Does nothing because you cannot rename a boolean value. |
| Methods inherited from class de.dfki.mycbr.core.model.SymbolDesc |
|---|
addOrderedSymbolFct, addSymbolFct, addTaxonomyFct, fits, fitsSingle, getAllowedValues, getAttribute, getNodes, getSymbolAttributes |
| 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, 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 BooleanDesc(Concept owner,
java.lang.String name)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public SymbolAttribute getBooleanAttribute(java.lang.Boolean value)
BooleanAttribute object representing the specified
value.
value - the boolean representing the value that should be returned
public SymbolFct addBooleanFct(java.lang.String name,
boolean active)
name - the name of the description for which a new function should be created
public boolean canOverride(AttributeDesc desc)
AttributeDesc
canOverride in class SymbolDescdesc - the description which should be overridden by this
public boolean isAllowedValue(java.lang.String v)
SymbolDesc
isAllowedValue in class SymbolDescv - the string which should be checked for allowance
public Attribute getAttribute(java.lang.Object value)
SymbolAttribute object representing the specified
value.
getAttribute in class AttributeDescvalue - the string representing the value that should be returned
public final java.lang.Integer getIndexOf(SimpleAttribute att)
getIndexOf in class SymbolDescatt - the attribute whose index should be returned
public void removeSymbol(java.lang.String value)
removeSymbol in class SymbolDescvalue - the value of the symbol attribute to be removed
public final boolean renameValue(java.lang.String oldValue,
java.lang.String newValue)
renameValue in class SymbolDescoldValue - the old valuenewValue - the new valuepublic final SymbolAttribute addSymbol(java.lang.String value)
addSymbol in class SymbolDescvalue - the value to be added to this description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||