genegui
Class SuccessList

java.lang.Object
  extended bygenegui.SuccessList

public class SuccessList
extends java.lang.Object

SuccessList.java Accumulates a list of "successful" runs. Two ArrayLists associate a ParamaterSet with the final ModelState of a successful run.


Constructor Summary
SuccessList()
          Simple constructor.
 
Method Summary
 void add(ModelState modelState, ParameterSet parameterSet, float score, java.lang.String name)
          Add a new pair to the list.
 void clear()
          Clears the contents of the list.
 ModelState getModelState(int index)
          Returns the ModelState from pair index.
 java.util.Vector getModelStates()
           
 java.lang.String getName(int index)
          Returns the name of the ParameterSet.
 java.util.Vector getNames()
          Returns a vector with the names of all the results.
 java.util.Vector getParameterNames()
           
 ParameterSet getParameterSet(int index)
          Returns the ParameterSet from pair index.
 float getScore(int index)
          Returns the name of the ParameterSet.
 java.util.Vector getScores()
           
 void setModelStates(java.util.Vector states)
           
 void setParameterNames(java.util.Vector names)
           
 void setScores(java.util.Vector scores)
           
 int size()
          Returns the number of pairs in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuccessList

public SuccessList()
Simple constructor.

Method Detail

add

public void add(ModelState modelState,
                ParameterSet parameterSet,
                float score,
                java.lang.String name)
Add a new pair to the list.


clear

public void clear()
Clears the contents of the list.


getModelState

public ModelState getModelState(int index)
Returns the ModelState from pair index.

Returns:
ModelState

getNames

public java.util.Vector getNames()
Returns a vector with the names of all the results.

Returns:
Vector

getName

public java.lang.String getName(int index)
Returns the name of the ParameterSet.

Returns:
String

getParameterSet

public ParameterSet getParameterSet(int index)
Returns the ParameterSet from pair index.

Returns:
ParameterSet

getScore

public float getScore(int index)
Returns the name of the ParameterSet.

Returns:
String

size

public int size()
Returns the number of pairs in the list.

Returns:
int

getModelStates

public java.util.Vector getModelStates()

setModelStates

public void setModelStates(java.util.Vector states)

getParameterNames

public java.util.Vector getParameterNames()

setParameterNames

public void setParameterNames(java.util.Vector names)

getScores

public java.util.Vector getScores()

setScores

public void setScores(java.util.Vector scores)