edu.cmu.minorthird.classify.experiments
Class EvaluationGroup

java.lang.Object
  extended by edu.cmu.minorthird.classify.experiments.EvaluationGroup
All Implemented Interfaces:
Visible, Saveable, java.io.Serializable

public class EvaluationGroup
extends java.lang.Object
implements Visible, java.io.Serializable, Saveable

A group of related evaluations.

Author:
William Cohen
See Also:
Serialized Form

Constructor Summary
EvaluationGroup()
           
 
Method Summary
 void add(java.lang.String name, Evaluation evaluation)
          Add an evaluation to the group
 java.util.Iterator<java.lang.String> evalNameIterator()
          Return an iterator for the names of evaluations in the group.
 Evaluation getEvaluation(java.lang.String name)
          Return the evaluation associated with this name.
 java.lang.String getExtensionFor(java.lang.String s)
          Recomended extension for the format with the given name.
 java.lang.String[] getFormatNames()
          List of formats in which the object can be saved.
static void main(java.lang.String[] args)
           
 java.lang.Object restore(java.io.File file)
          Restore the object from a file.
 void saveAs(java.io.File file, java.lang.String format)
          Save this object to the given file, in the given format.
 Viewer toGUI()
          Create a view of this object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluationGroup

public EvaluationGroup()
Method Detail

add

public void add(java.lang.String name,
                Evaluation evaluation)
Add an evaluation to the group


evalNameIterator

public java.util.Iterator<java.lang.String> evalNameIterator()
Return an iterator for the names of evaluations in the group.


getEvaluation

public Evaluation getEvaluation(java.lang.String name)
Return the evaluation associated with this name.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toGUI

public Viewer toGUI()
Description copied from interface: Visible
Create a view of this object

Specified by:
toGUI in interface Visible

getFormatNames

public java.lang.String[] getFormatNames()
Description copied from interface: Saveable
List of formats in which the object can be saved.

Specified by:
getFormatNames in interface Saveable

getExtensionFor

public java.lang.String getExtensionFor(java.lang.String s)
Description copied from interface: Saveable
Recomended extension for the format with the given name.

Specified by:
getExtensionFor in interface Saveable

saveAs

public void saveAs(java.io.File file,
                   java.lang.String format)
            throws java.io.IOException
Description copied from interface: Saveable
Save this object to the given file, in the given format.

Specified by:
saveAs in interface Saveable
Throws:
java.io.IOException

restore

public java.lang.Object restore(java.io.File file)
                         throws java.io.IOException
Description copied from interface: Saveable
Restore the object from a file.

Specified by:
restore in interface Saveable
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)