|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.iucbrf.solution.Solution
public class Solution
Classes in the Solution component package are used both as part of a
Case object and as stand-alone descriptors of the system's solution to
a new problem.
| Field Summary |
|---|
| Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
|---|
TITLE_FONT |
| Constructor Summary | |
|---|---|
protected |
Solution()
Creates new Solution. |
|
Solution(FeatureCollection features,
Domain domain)
|
| Method Summary | |
|---|---|
void |
adjust(double adjustAmount)
This implementation throws an UnsupportedOperationException. |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object other)
Two solutions are equal if each individual feature is equal. |
void |
fromXML(java.lang.String XMLString)
|
Feature |
getFeature(FeatureKey featureKey)
Get the value of a particular feature. |
FeatureCollection |
getFeatures()
|
boolean |
getIsReferenceSolution()
|
double |
getValueAsDouble()
Obtain a double representation of this solution. |
void |
setIsReferenceSolution(boolean isReferenceSolution)
|
java.lang.String |
toString()
Get a String representation of this Solution. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Solution()
public Solution(FeatureCollection features,
Domain domain)
| Method Detail |
|---|
public boolean getIsReferenceSolution()
public void setIsReferenceSolution(boolean isReferenceSolution)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Domain domain)
toString in interface Featuredpublic javax.swing.JComponent toSwing(int detailLevel)
SwingRepresentable
toSwing in interface SwingRepresentablepublic javax.swing.JComponent toSwing(Domain domain)
toSwing in interface SwingRepresentableWithDomainpublic java.lang.String toXML(Domain domain)
toXML in interface XMLRepresentablepublic void fromXML(java.lang.String XMLString)
fromXML in interface XMLRepresentablepublic Feature getFeature(FeatureKey featureKey)
getFeature in interface FeaturedfeatureID - The index of the desired feature.
public FeatureCollection getFeatures()
getFeatures in interface Featured
public double getValueAsDouble()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public void adjust(double adjustAmount)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||