edu.indiana.iucbrf.casepackage
Class KeyIndicesPair
java.lang.Object
edu.indiana.iucbrf.casepackage.Case
edu.indiana.iucbrf.casepackage.KeyIndicesPair
- All Implemented Interfaces:
- SwingRepresentableWithDomain, SwingRepresentable, java.io.Serializable, java.lang.Comparable
public class KeyIndicesPair
- extends Case
- implements java.io.Serializable
A container for a case key (of type long) and a ProblemIndices object.
This class extends case, where the "problem" is the full case's indices. The "solution" is null.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object other)
Returns true if this case equals the given case; false otherwise. |
ProblemIndices |
getIndices()
|
java.lang.String |
toString()
Convert this case to a string representation. |
Methods inherited from class edu.indiana.iucbrf.casepackage.Case |
applyFeatureNoise, applySolutionNoise, compareTo, constructIndices, fromXML, getCaseAge, getCaseKey, getCaseSource, getInactiveContexts, getProblem, getProblemCountAtAddition, getSolution, getSuccessfulUseCount, getTitle, getUseCount, hasCaseKey, hasSolution, isActive, markCaseUsed, markCaseUsedSuccessfully, miscToSwing, resetCounts, setActive, setCaseKey, setCaseSource, setInactive, setInactiveContexts, setProblem, setSolution, setTitle, toString, toString, toSwing, toSwing, toSwing, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeyIndicesPair
protected KeyIndicesPair()
KeyIndicesPair
public KeyIndicesPair(long caseKey,
ProblemIndices indices)
- Creates a new instance of KeyIndicesPair
getIndices
public ProblemIndices getIndices()
equals
public boolean equals(java.lang.Object other)
- Description copied from class:
Case
- Returns true if this case equals the given case; false otherwise.
- Overrides:
equals
in class Case
toString
public java.lang.String toString()
- Description copied from class:
Case
- Convert this case to a string representation.
- Overrides:
toString
in class Case
- Returns:
- A String representing the problem and solution.