|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.problem.Problem
public class Problem
Classes in the Problem component package are used both as a part of a
Case object and as stand-alone descriptors of new problems entering the
system.
A problem is represented as a FeatureCollection of Feature objects. Each Feature type
may be as complex as needed, so this is not a restriction of expressive power.
All Problem objects of a particular domain-specific implementation of this class must contain
the same number and type of features.
Note: Any extension must implement Serializable, if case base file save and load functionality is desired.
Field Summary | |
---|---|
protected FeatureCollection |
features
A collection of the features. |
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Constructor Summary | |
---|---|
protected |
Problem()
|
|
Problem(FeatureCollection supplied_features)
Creates a populated problem defaults to NOT being FeatureSpecd |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
ProblemIndices |
constructIndices(Domain domain)
Constructs a ProblemIndices. |
boolean |
equals(java.lang.Object other)
Determine if this problem is equal to another. |
void |
fromXML(java.lang.String XMLString)
|
Feature |
getFeature(FeatureKey key)
Get the value of a particular feature. |
FeatureCollection |
getFeatures()
|
Problem |
getUnestimatedCopy(Domain domain)
Obtain a copy of this problem, not including any estimated features. |
java.lang.String |
toString()
Create a string representation of this problem. |
java.lang.String |
toString(Domain domain)
|
javax.swing.JComponent |
toSwing(Domain domain)
|
javax.swing.JComponent |
toSwing(int detailLevel)
Detail level may be ignored by implementations. |
java.lang.String |
toXML(Domain domain)
|
void |
update(Question question,
Feature answer,
CCBRDomain domain)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FeatureCollection features
Constructor Detail |
---|
protected Problem()
public Problem(FeatureCollection supplied_features)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Domain domain)
toString
in interface Featured
public javax.swing.JComponent toSwing(int detailLevel)
SwingRepresentable
toSwing
in interface SwingRepresentable
public javax.swing.JComponent toSwing(Domain domain)
toSwing
in interface SwingRepresentableWithDomain
public java.lang.String toXML(Domain domain)
toXML
in interface XMLRepresentable
public void fromXML(java.lang.String XMLString)
fromXML
in interface XMLRepresentable
public ProblemIndices constructIndices(Domain domain)
public Feature getFeature(FeatureKey key)
getFeature
in interface Featured
featureID
- The index of the desired feature.
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public FeatureCollection getFeatures()
getFeatures
in interface Featured
public void update(Question question, Feature answer, CCBRDomain domain)
public Problem getUnestimatedCopy(Domain domain)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |