de.dfki.mycbr.core.casebase
Class SpecialAttribute

java.lang.Object
  extended by java.util.Observable
      extended by de.dfki.mycbr.core.casebase.Attribute
          extended by de.dfki.mycbr.core.casebase.SimpleAttribute
              extended by de.dfki.mycbr.core.casebase.SymbolAttribute
                  extended by de.dfki.mycbr.core.casebase.SpecialAttribute
All Implemented Interfaces:
IExplainable, TaxonomyNode

public final class SpecialAttribute
extends SymbolAttribute

Represents special values in queries or cases. The semantics can be defined separately. There is one SpecialValueAttribute for each attribute description that wraps one SpecialValue object. This assures consistency since we expect that each value occurring in query or case knows its attribute description and is of type SimpleAttribute. Objects of this class are maintained by ranges defined in AttributeDesc objects.

Author:
myCBR Team

Method Summary
 Similarity calculateSimilarity(SimpleAttribute att)
          Returns similarity of this attribute to the given attribute.
 
Methods inherited from class de.dfki.mycbr.core.casebase.SymbolAttribute
getNodes, getValue, getValueAsString, setValue, toString
 
Methods inherited from class de.dfki.mycbr.core.casebase.SimpleAttribute
getAttributeDesc, getDesc, getExpType, getName, setDesc
 
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
 

Method Detail

calculateSimilarity

public Similarity calculateSimilarity(SimpleAttribute att)
                               throws java.lang.Exception
Returns similarity of this attribute to the given attribute. Calls Project.calculateSpecialSimilarity(Attribute, Attribute) to calculate the requested similarity

Parameters:
att - the attribute this should be compared with
Returns:
similarity of the given attributes
Throws:
java.lang.Exception - if something went wrong during similarity calculations