de.dfki.mycbr.core.model
Class SimpleAttDesc

java.lang.Object
  extended by java.util.Observable
      extended by de.dfki.mycbr.core.model.AttributeDesc
          extended by de.dfki.mycbr.core.model.SimpleAttDesc
All Implemented Interfaces:
IExplainable, java.util.Observer
Direct Known Subclasses:
DateDesc, DoubleDesc, FloatDesc, IntegerDesc, IntervalDesc, StringDesc, SymbolDesc

public abstract class SimpleAttDesc
extends AttributeDesc

You can either define simple attribute descriptions, or concept descriptions. The latter ones define part-of relations. Simple attribute descriptions are descriptions of strings, integers, floats, doubles symbols, etc.

Author:
myCBR Team

Constructor Summary
SimpleAttDesc(Concept owner, java.lang.String name)
           
 
Method Summary
 void addFct(ISimFct f)
           
abstract  boolean canOverride(AttributeDesc desc)
          Checks whether this attribute description can override the given attribute description
 void deleteAllFcts()
           
 void deleteSimFct(ISimFct f)
          Deletes the given function from the list of known functions for the given description.
 ISimFct getFct(java.lang.String name)
           
 java.util.List<ISimFct> getSimFcts()
          Returns the available similarity functions for the specified description.
 void renameFct(java.lang.String nameOLD, java.lang.String nameNEW)
           
 
Methods inherited from class de.dfki.mycbr.core.model.AttributeDesc
delete, fits, fitsSingle, 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

SimpleAttDesc

public SimpleAttDesc(Concept owner,
                     java.lang.String name)
              throws java.lang.Exception
Parameters:
owner - the owner of this
name - the name of this
Throws:
java.lang.Exception - if the owner has another description with this name
Method Detail

getSimFcts

public final java.util.List<ISimFct> getSimFcts()
Returns the available similarity functions for the specified description.

Returns:
the available similarity functions for the given description

getFct

public final ISimFct getFct(java.lang.String name)
Parameters:
name - the name of the function to be returned
Returns:
the function of name name or null if there is no function known for this having this name

deleteSimFct

public final void deleteSimFct(ISimFct f)
Deletes the given function from the list of known functions for the given description.

Parameters:
f - the function to be deleted

addFct

public final void addFct(ISimFct f)
Parameters:
f - the function to be added to this

canOverride

public abstract boolean canOverride(AttributeDesc desc)
Description copied from class: AttributeDesc
Checks whether this attribute description can override the given attribute description

Specified by:
canOverride in class AttributeDesc

deleteAllFcts

public final void deleteAllFcts()
Specified by:
deleteAllFcts in class AttributeDesc

renameFct

public void renameFct(java.lang.String nameOLD,
                      java.lang.String nameNEW)
Parameters:
nameOLD -
nameNEW -