|
||||||||||
| 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
public abstract class AttributeDesc
The vocabulary of a myCBR project consists of several concepts
which describe a tree like structure as a class hierarchy (with composition
and inheritance). The classes in this hierarchy are represented by objects of
type concept. Each concept contains several
attribute descriptions (like integer, float, boolean descriptions ...).
Concepts can have sub/super concepts (representing
inheritance) and can have concept descriptions as attribute descriptions
themselves (representing composition).
The structure containing the values (representing object diagrams) is
introduced in the package de.dfki.mycbr.core.casebase.
This class contains properties that all of these descriptions have in common.
| Constructor Summary | |
|---|---|
AttributeDesc(Concept owner,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
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)
|
| 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 AttributeDesc(Concept owner,
java.lang.String name)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public 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.ParseException
public 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 checked
public boolean fitsSingle(Attribute att)
fits(Attribute)
att - the attribute which should be checked
public void delete()
public abstract void deleteAllFcts()
public java.lang.String toString()
toString in class java.lang.Objectpublic Explainable getExpType()
getExpType in interface IExplainable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||