public abstract class AttributeDesc extends java.util.Observable implements java.util.Observer, IExplainable
de.dfki.mycbr.core.casebase.
This class contains properties that all of these descriptions have in common.| Constructor and Description |
|---|
AttributeDesc(Concept owner,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description
can override the given attribute description
|
void |
delete() |
abstract void |
deleteAllFcts() |
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.
|
Attribute |
getAttribute(java.lang.Object value) |
Explainable |
getExpType() |
java.lang.String |
getName() |
Concept |
getOwner()
Returns the owner of this description.
|
boolean |
isMultiple()
Get the value of isMultiple.
|
void |
setMultiple(boolean isMultiple)
Set the value of isMultiple.
|
void |
setName(java.lang.String name) |
void |
setOwner(Concept owner) |
java.lang.String |
toString() |
void |
update(java.util.Observable o,
java.lang.Object arg) |
public AttributeDesc(Concept owner, java.lang.String name) throws java.lang.Exception
java.lang.Exceptionpublic void setMultiple(boolean isMultiple)
isMultiple - the new value of isMultiplepublic boolean isMultiple()
public void setOwner(Concept owner) throws java.lang.Exception
java.lang.Exceptionpublic Concept getOwner()
public void setName(java.lang.String name)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getName()
getName in interface IExplainablepublic abstract boolean canOverride(AttributeDesc desc)
public Attribute getAttribute(java.lang.Object value) throws java.text.ParseException
value - java.text.ParseExceptionpublic void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic boolean fits(Attribute att)
fitsSingle(Attribute)att - the attribute to be checkedpublic boolean fitsSingle(Attribute att)
fits(Attribute)att - the attribute which should be checkedpublic void delete()
public abstract void deleteAllFcts()
public java.lang.String toString()
toString in class java.lang.Objectpublic Explainable getExpType()
getExpType in interface IExplainable