adams.flow.container
Class WekaModelContainer

java.lang.Object
  extended by adams.flow.container.AbstractContainer
      extended by adams.flow.container.WekaModelContainer
All Implemented Interfaces:
CloneHandler<AbstractContainer>, Serializable

public class WekaModelContainer
extends AbstractContainer

A container for models (e.g., classifier or clusterer) and an optional header of a dataset.

Version:
$Revision: 4682 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
static String VALUE_DATASET
          the identifier for the full dataset.
static String VALUE_HEADER
          the identifier for the Header.
static String VALUE_MODEL
          the identifier for the Model.
 
Fields inherited from class adams.flow.container.AbstractContainer
m_AdditionalNames, m_Values
 
Constructor Summary
WekaModelContainer()
          Initializes the container.
WekaModelContainer(Object model)
          Initializes the container with no header.
WekaModelContainer(Object model, weka.core.Instances header)
          Initializes the container with no header.
WekaModelContainer(Object model, weka.core.Instances header, weka.core.Instances data)
          Initializes the container with no header.
 
Method Summary
 boolean isValid()
          Checks whether the setup of the container is valid.
 Enumeration<String> names()
          Returns all value names that can be used (theoretically).
 
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, checkDefaultConstructor, getClone, getValue, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_MODEL

public static final String VALUE_MODEL
the identifier for the Model.

See Also:
Constant Field Values

VALUE_HEADER

public static final String VALUE_HEADER
the identifier for the Header.

See Also:
Constant Field Values

VALUE_DATASET

public static final String VALUE_DATASET
the identifier for the full dataset.

See Also:
Constant Field Values
Constructor Detail

WekaModelContainer

public WekaModelContainer()
Initializes the container.

Only used for generating help information.


WekaModelContainer

public WekaModelContainer(Object model)
Initializes the container with no header.

Parameters:
model - the model to use

WekaModelContainer

public WekaModelContainer(Object model,
                          weka.core.Instances header)
Initializes the container with no header.

Parameters:
model - the model to use
header - the header to use

WekaModelContainer

public WekaModelContainer(Object model,
                          weka.core.Instances header,
                          weka.core.Instances data)
Initializes the container with no header.

Parameters:
model - the model to use
header - the header to use
data - the data to use
Method Detail

names

public Enumeration<String> names()
Returns all value names that can be used (theoretically).

Specified by:
names in class AbstractContainer
Returns:
enumeration over all possible value names

isValid

public boolean isValid()
Checks whether the setup of the container is valid.

Specified by:
isValid in class AbstractContainer
Returns:
true if all the necessary values are available


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.