edu.indiana.iucbrf.performancemonitor
Class SolutionQuality

java.lang.Object
  extended by edu.indiana.iucbrf.performancemonitor.SolutionQuality
All Implemented Interfaces:
SwingRepresentable, java.io.Serializable

public class SolutionQuality
extends java.lang.Object
implements java.io.Serializable, SwingRepresentable

This class is a container for the relevant data regarding a Solution object's quality, as determined by the domain-dependent implementation of PerformanceMonitor.determineSolutionQuality().

See Also:
Serialized Form

Field Summary
protected  double solutionQualityRating
          A numerical quality rating for these solutions.
protected  boolean solvedWell
          If the Solution is "good enough" (according to determineSolutionQuality()), then this is true.
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
protected SolutionQuality()
           
  SolutionQuality(boolean solvedWell, double solutionQualityRating)
          Creates new SolutionQuality
 
Method Summary
 double getSolutionQualityRating()
          Returns the judged solution quality rating.
 boolean problemSolvedWell()
          Returns true if the quality indicates that this problem was solved well; false otherwise.
 java.lang.String toString()
          Get a string representation of this SolutionQuality.
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

solvedWell

protected boolean solvedWell
If the Solution is "good enough" (according to determineSolutionQuality()), then this is true.


solutionQualityRating

protected double solutionQualityRating
A numerical quality rating for these solutions.

Constructor Detail

SolutionQuality

protected SolutionQuality()

SolutionQuality

public SolutionQuality(boolean solvedWell,
                       double solutionQualityRating)
Creates new SolutionQuality

Method Detail

problemSolvedWell

public boolean problemSolvedWell()
Returns true if the quality indicates that this problem was solved well; false otherwise.


getSolutionQualityRating

public double getSolutionQualityRating()
Returns the judged solution quality rating.


toString

public java.lang.String toString()
Get a string representation of this SolutionQuality.

Overrides:
toString in class java.lang.Object

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable