ensemble
Class Prediction_set

java.lang.Object
  extended by ensemble.Prediction_set

public class Prediction_set
extends java.lang.Object

This class represents a set of predictions from the database.


Constructor Summary
Prediction_set(int id, java.lang.String predName, int dataID, java.lang.String username, java.lang.String description, boolean excluded)
          Creates a new prediction set with the given values.
 
Method Summary
 int getDataID()
          The ID number of the data set the predictions are for.
 java.lang.String getDescription()
          A description of the prediction set.
 int getId()
          The ID number of the prediction set
 java.lang.String getPredName()
          The name of the prediction set.
 java.lang.String getUsername()
          The name of the user who submitted the prediction set.
 boolean isExcluded()
          Indicates if the prediction set should be excluded from ensembles.
static void setDb(DatabaseBean db)
          Sets the static data member that gives the class access to the database.
 void setExcluded(boolean excluded)
          Sets flag indicating whether the prediction set should be excluded from ensembles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prediction_set

public Prediction_set(int id,
                      java.lang.String predName,
                      int dataID,
                      java.lang.String username,
                      java.lang.String description,
                      boolean excluded)
Creates a new prediction set with the given values.

Parameters:
id - The ID number of the prediction set
predName - The name of the prediction set
dataID - The ID number of the data set the predictions are for
username - The name of the user who submitted the set
description - A description of the prediction set
excluded - True if the set should be excluded from ensembles, else false
Method Detail

getDataID

public int getDataID()
The ID number of the data set the predictions are for.

Returns:
The data set's ID number

getDescription

public java.lang.String getDescription()
A description of the prediction set.

Returns:
A string describing the set

getId

public int getId()
The ID number of the prediction set

Returns:
The set's ID number

getPredName

public java.lang.String getPredName()
The name of the prediction set.

Returns:
The set's name

getUsername

public java.lang.String getUsername()
The name of the user who submitted the prediction set.

Returns:
The user's name

isExcluded

public boolean isExcluded()
Indicates if the prediction set should be excluded from ensembles.

Returns:
True if the set should be excluded, else false

setExcluded

public void setExcluded(boolean excluded)
                 throws java.sql.SQLException,
                        java.io.IOException
Sets flag indicating whether the prediction set should be excluded from ensembles.

Parameters:
excluded - True to exclude the set, false otherwise
Throws:
java.sql.SQLException
java.io.IOException

setDb

public static void setDb(DatabaseBean db)
Sets the static data member that gives the class access to the database.

Parameters:
db - The databaseBean for the application