de.dfki.mycbr.core.casebase
Class SimpleAttribute

java.lang.Object
  extended by java.util.Observable
      extended by de.dfki.mycbr.core.casebase.Attribute
          extended by de.dfki.mycbr.core.casebase.SimpleAttribute
All Implemented Interfaces:
IExplainable
Direct Known Subclasses:
DateAttribute, DoubleAttribute, FloatAttribute, IntegerAttribute, IntervalAttribute, StringAttribute, SymbolAttribute

public abstract class SimpleAttribute
extends Attribute
implements IExplainable

Represents values occurring in query and or cases. Each attribute knows its description and therefore knows how similar it is to other attributes of the same description. Attributes for a fixed description are maintained by ranges (classes implementing interface Range).

Author:
myCBR Team

Method Summary
 AttributeDesc getAttributeDesc()
          Gets the description for this attribute to determine similarity functions or restrictions for the value of this attribute.
 AttributeDesc getDesc()
           
 Explainable getExpType()
           
 java.lang.String getName()
           
 void setDesc(AttributeDesc d)
           
 
Methods inherited from class de.dfki.mycbr.core.casebase.Attribute
getValueAsString
 
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, toString, wait, wait, wait
 

Method Detail

getAttributeDesc

public final AttributeDesc getAttributeDesc()
Gets the description for this attribute to determine similarity functions or restrictions for the value of this attribute.

Returns:
the description of this attribute

getName

public final java.lang.String getName()
Specified by:
getName in interface IExplainable
Returns:
the name of this

getExpType

public final Explainable getExpType()
Specified by:
getExpType in interface IExplainable
Returns:
the type of this explainable object

setDesc

public final void setDesc(AttributeDesc d)
Parameters:
d - the desc to set

getDesc

public final AttributeDesc getDesc()
Returns:
the desc