|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.iucbrf.casebase.AbstractCaseBase
edu.indiana.iucbrf.casebase.AbstractKeyableCaseBase
edu.indiana.iucbrf.casebase.FlatCaseBase
public class FlatCaseBase
A list of cases, without any hierarchical ordering.
| Field Summary |
|---|
| Fields inherited from class edu.indiana.iucbrf.casebase.AbstractKeyableCaseBase |
|---|
markerList |
| Fields inherited from class edu.indiana.iucbrf.casebase.AbstractCaseBase |
|---|
caseClass, debugMode, DEFAULT_INITIAL_CAPACITY, domain, listeners, prototype |
| Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
|---|
TITLE_FONT |
| Constructor Summary | |
|---|---|
FlatCaseBase()
Construct a FlatCaseBase. |
|
FlatCaseBase(CaseGenerator caseGenerator,
int numToGenerate)
Construct a FlatCaseBase that will be initialized with initialCapacity cases, generated by caseGenerator. |
|
FlatCaseBase(java.lang.Class caseClass)
Construct a FlatCaseBase that will contain cases of the given case class. |
|
FlatCaseBase(java.lang.Class caseClass,
int initialCapacity)
|
|
FlatCaseBase(int initialCapacity)
Creates new empty FlatCaseBase. |
|
| Method Summary | |
|---|---|
void |
addCaseWithKey(Case acase)
Add a case with the key already in acase.getCaseKey(). |
void |
ensureCapacity(int minCapacity)
This implementation does nothing. |
Case |
getCase(long key)
Get the case with the given key. |
int |
getCaseCount()
Gets the number of cases in this CaseBase |
java.util.HashMap |
getCases()
|
protected void |
initializeCB(int initialCapacity)
Perform any necessary initialization of the case base. |
java.util.Iterator |
iterator()
Create an iterator on the case base. |
boolean |
removeCase(long key)
Remove the case with the given key. |
protected boolean |
removeCaseImpl(Case c)
Completes the task of removing a case, begun by removeCase(). |
java.lang.String |
toString()
Convert this case base into a String representation. |
javax.swing.JComponent |
toSwing(Domain domain)
|
javax.swing.JComponent |
toSwing(int detailLevel)
Detail level may be ignored by implementations. |
| Methods inherited from class edu.indiana.iucbrf.casebase.AbstractKeyableCaseBase |
|---|
addCaseImpl, getMarkerKeys, getNextCaseKey |
| Methods inherited from class edu.indiana.iucbrf.casebase.AbstractCaseBase |
|---|
addCase, addCaseBaseListener, addCases, addCases, addCases, buildCaseJList, checkCaseType, classMemberIterator, clearAllEstimates, close, fireCaseAdded, fireCaseClassChanged, fireCaseRemoved, fireCaseReplaced, fireCasesCleared, getCaseClass, getCasesMatching, getDomain, getPrototype, isEmpty, removeCase, removeCaseBaseListener, setBaseFileName, setCaseClass, setDebugMode, setDomain, toVerboseString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.indiana.iucbrf.casebase.CaseBase |
|---|
addCase, addCaseBaseListener, addCases, addCases, addCases, clearAllEstimates, close, getCaseClass, getCasesMatching, getDomain, isEmpty, removeCase, removeCaseBaseListener, setBaseFileName, setCaseClass, setDomain, toVerboseString |
| Constructor Detail |
|---|
public FlatCaseBase()
public FlatCaseBase(java.lang.Class caseClass)
public FlatCaseBase(int initialCapacity)
initialCapacity - The initial capacity of the FlatCaseBase
public FlatCaseBase(java.lang.Class caseClass,
int initialCapacity)
public FlatCaseBase(CaseGenerator caseGenerator,
int numToGenerate)
| Method Detail |
|---|
public java.util.HashMap getCases()
protected void initializeCB(int initialCapacity)
initializeCB in class AbstractCaseBasepublic void ensureCapacity(int minCapacity)
ensureCapacity in interface CaseBaseensureCapacity in class AbstractCaseBasepublic int getCaseCount()
getCaseCount in interface CaseBasepublic java.lang.String toString()
toString in interface CaseBasetoString in class AbstractCaseBasepublic java.util.Iterator iterator()
iterator in interface CaseBaseiterator in class AbstractCaseBaseprotected boolean removeCaseImpl(Case c)
removeCaseImpl in class AbstractKeyableCaseBasepublic void addCaseWithKey(Case acase)
KeyableCaseBase
addCaseWithKey in interface KeyableCaseBasepublic Case getCase(long key)
getCase in interface KeyableCaseBasekey - The key of the case to be retrieved.
public boolean removeCase(long key)
removeCase in interface KeyableCaseBasekey - The key of the case to be removed.
public javax.swing.JComponent toSwing(Domain domain)
toSwing in interface SwingRepresentableWithDomaintoSwing in class AbstractCaseBasepublic javax.swing.JComponent toSwing(int detailLevel)
SwingRepresentable
toSwing in interface SwingRepresentabletoSwing in class AbstractCaseBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||