|
||||||||||
| 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.DefaultCaseBase
public final class DefaultCaseBase
Class DefaultCasebase. Represents cases as a c attribute. Therefore, uses
myCBR's default classes for internal case representation contained in the
package de.dfki.mycbr.core.casebase.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.dfki.mycbr.core.ICaseBase |
|---|
ICaseBase.Meta |
| Constructor Summary | |
|---|---|
DefaultCaseBase(Project p,
java.lang.String cbName,
int count)
|
|
| Method Summary | |
|---|---|
void |
addCase(Instance caze)
Adds a new case to the list of known cases for the given description. |
Instance |
containsCase(java.lang.String caseName)
Tells whether this case base contains a case with the given name. |
java.lang.String |
getAuthor()
|
java.util.Collection<Instance> |
getCases()
Returns the list of cases known for this case base |
java.util.Date |
getDate()
|
java.text.DateFormat |
getDateFormat()
|
java.lang.String |
getName()
Returns the unique name of this case base. |
Project |
getProject()
Returns the project this case base belongs to |
boolean |
removeCase(Instance c)
Removes the given c attribute from the list of known cases. |
boolean |
removeCase(java.lang.String caseName)
Removes the first case with the given name. |
void |
setAuthor(java.lang.String author)
|
void |
setDate(java.util.Date date)
|
void |
setName(java.lang.String cbName)
Sets the name of this case base to the given name. |
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
This observes all cases. |
| 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 |
| Constructor Detail |
|---|
public DefaultCaseBase(Project p,
java.lang.String cbName,
int count)
throws java.lang.Exception
cbName - the name of the case basep - the project this cb should belong tocount - the number of cases expected for this case base
java.lang.Exception - if name is null or empty or if the given project is null or
already has a case base with this name| Method Detail |
|---|
public java.util.Collection<Instance> getCases()
getCases in interface ICaseBasepublic void addCase(Instance caze)
addCase in interface ICaseBasecaze - the case to be added to this case basepublic boolean removeCase(Instance c)
c - the case to be removed
public java.lang.String getName()
getName in interface ICaseBase
public void setName(java.lang.String cbName)
throws java.lang.Exception
setName in interface ICaseBasecbName - the new name of this case base
java.lang.Exception - if name is null or empty or there is a case base with
this name in the corresponding projectpublic Instance containsCase(java.lang.String caseName)
containsCase in interface ICaseBasecaseName - the name of the case to be checked for
public boolean removeCase(java.lang.String caseName)
removeCase in interface ICaseBasecaseName - the name of the case to be removed
public void update(java.util.Observable arg0,
java.lang.Object arg1)
update in interface java.util.Observerarg0 - observablearg1 - objectpublic void setAuthor(java.lang.String author)
author - the author to setpublic java.lang.String getAuthor()
public void setDate(java.util.Date date)
date - the date to setpublic java.util.Date getDate()
public java.text.DateFormat getDateFormat()
public Project getProject()
ICaseBase
getProject in interface ICaseBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||