|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CaseBase
A CaseBase contains cases.
Field Summary |
---|
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Method Summary | |
---|---|
long |
addCase(Case acase)
Add a single case to the case base. |
void |
addCaseBaseListener(CaseBaseListener cll)
Add a CaseBaseListener to listen for CaseBaseEvents. |
void |
addCases(CaseBase cases)
Add a case base containing cases to this case base, using addCase(). |
void |
addCases(CaseGenerator caseGenerator,
int numToAdd)
Generate numToAdd cases with the given caseGenerator. |
void |
addCases(java.util.Collection cases)
Add a Collection of cases to the case base, using addCase(). |
void |
clearAllEstimates()
Remove all estimated features from the cases in the case base. |
void |
close()
Perform any maintenance needed during finalization of this CaseBase, such closing of open files. |
void |
ensureCapacity(int minimumCapacity)
|
java.lang.Class |
getCaseClass()
Get the class of cases used in this case base. |
int |
getCaseCount()
Gets the number of cases in this case base |
FlatCaseBase |
getCasesMatching(java.lang.Class case_class)
Get the cases in this case base that are of a given class. |
Domain |
getDomain()
|
boolean |
isEmpty()
Returns true if this case base is empty, false otherwise. |
java.util.Iterator |
iterator()
Create an iterator on the case base. |
boolean |
removeCase(Case c)
Remove a single case from the case base. |
void |
removeCaseBaseListener(CaseBaseListener cll)
Remove a previously added CaseBaseListener. |
void |
setBaseFileName(java.lang.String baseFilename)
Set the base filename that will be used for saving this case base. |
void |
setCaseClass(java.lang.Class case_class)
Set the class of cases used in this case base. |
void |
setDomain(Domain domain)
Set the transient domain attribute for this case base. |
java.lang.String |
toString()
Convert this case base to a string representation. |
java.lang.String |
toVerboseString()
Can be overridden to provide more details than toString(). |
Methods inherited from interface edu.indiana.iucbrf.util.SwingRepresentableWithDomain |
---|
toSwing |
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
toSwing |
Method Detail |
---|
long addCase(Case acase)
acase
- The case to add.
java.util.Iterator iterator() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void ensureCapacity(int minimumCapacity)
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toVerboseString() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void addCases(java.util.Collection cases)
cases
- The Collection of cases to add.void addCases(CaseBase cases)
cases
- The CaseBase of cases to add.void addCases(CaseGenerator caseGenerator, int numToAdd)
java.lang.Class getCaseClass()
void setCaseClass(java.lang.Class case_class)
FlatCaseBase getCasesMatching(java.lang.Class case_class)
boolean removeCase(Case c)
acase
- The case to remove.
int getCaseCount()
boolean isEmpty()
void close()
void addCaseBaseListener(CaseBaseListener cll)
void removeCaseBaseListener(CaseBaseListener cll)
void setBaseFileName(java.lang.String baseFilename)
void setDomain(Domain domain)
Domain getDomain()
void clearAllEstimates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |