Package adams.flow.container
Class MekaResultContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.MekaResultContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class MekaResultContainer extends adams.flow.container.AbstractContainer
A container forResult
objects, with optional trained model.- Version:
- $Revision: 7987 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_MODEL
the identifier for the Model.static String
VALUE_RESULT
the identifier for the Result.
-
Constructor Summary
Constructors Constructor Description MekaResultContainer()
Initializes the container.MekaResultContainer(meka.core.Result result)
Initializes the container with no header.MekaResultContainer(meka.core.Result result, Object model)
Initializes the container with no header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_RESULT
public static final String VALUE_RESULT
the identifier for the Result.- See Also:
- Constant Field Values
-
VALUE_MODEL
public static final String VALUE_MODEL
the identifier for the Model.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MekaResultContainer
public MekaResultContainer()
Initializes the container.
Only used for generating help information.
-
MekaResultContainer
public MekaResultContainer(meka.core.Result result)
Initializes the container with no header.- Parameters:
result
- the result to use
-
MekaResultContainer
public MekaResultContainer(meka.core.Result result, Object model)
Initializes the container with no header.- Parameters:
result
- the result to usemodel
- the model to use
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.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 interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-