classification
Class EnsembleBean

java.lang.Object
  extended by classification.EnsembleBean
All Implemented Interfaces:
java.io.Serializable

@Named(value="ensembleBean")
@ApplicationScoped
public class EnsembleBean
extends java.lang.Object
implements java.io.Serializable

This bean carries out the task of combining available predictions for each data set.

See Also:
Serialized Form

Constructor Summary
EnsembleBean()
           
 
Method Summary
 java.lang.String deleteEnsemble(Ensemble e)
          Deletes an ensemble (and its XML file), then navigates back to the statistics page
 void generateEnsembles()
           
 java.util.List<MetaClassifier> getClassifierList()
          The list of meta-classifiers currently available.
 java.util.List<Ensemble> getEnsembleList()
          The list of currently available ensembles.
 java.lang.Boolean getGenerate()
          Whether the ensemble-building thread is currently set to do work.
 int getNumEnsembles()
          The number of ensembles currently available.
 int getWaitMinutes()
          The number of minutes that pass between each time the ensemble building thread checks for new data or predictions.
 void setGenerate(java.lang.Boolean generate)
          Sets whether the ensemble-building thread is currently set to do work.
 void setWaitMinutes(int waitMinutes)
          Sets the number of minutes that pass between each time the ensemble building thread checks for new data or predictions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnsembleBean

public EnsembleBean()
Method Detail

generateEnsembles

@PostConstruct
public void generateEnsembles()

deleteEnsemble

public java.lang.String deleteEnsemble(Ensemble e)
                                throws java.sql.SQLException,
                                       java.io.IOException
Deletes an ensemble (and its XML file), then navigates back to the statistics page

Parameters:
e - The ensemble to delete
Returns:
"/stats"
Throws:
java.sql.SQLException
java.io.IOException

getClassifierList

public java.util.List<MetaClassifier> getClassifierList()
The list of meta-classifiers currently available.

Returns:
The list of meta-classifiers

getEnsembleList

public java.util.List<Ensemble> getEnsembleList()
The list of currently available ensembles.

Returns:
The list of ensembles.

getWaitMinutes

public int getWaitMinutes()
The number of minutes that pass between each time the ensemble building thread checks for new data or predictions.

Returns:
The number of minutes to wait between checks

setWaitMinutes

public void setWaitMinutes(int waitMinutes)
Sets the number of minutes that pass between each time the ensemble building thread checks for new data or predictions.

Parameters:
waitMinutes - The desired number of minutes to wait

getGenerate

public java.lang.Boolean getGenerate()
Whether the ensemble-building thread is currently set to do work.

Returns:
True if the thread is enabled, false if it has been suspended

setGenerate

public void setGenerate(java.lang.Boolean generate)
Sets whether the ensemble-building thread is currently set to do work.

Parameters:
generate - True to enable ensemble generation, false to suspend it

getNumEnsembles

public int getNumEnsembles()
The number of ensembles currently available.

Returns:
The current number of ensembles