|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
edu.udo.cs.yale.operator.IOModel
edu.udo.cs.yale.operator.ContainerModel
public class ContainerModel
This model is a container for all models which should be applied in a sequence.
| Field Summary | |
|---|---|
private java.util.List<Model> |
models
Contains all models. |
| Constructor Summary | |
|---|---|
ContainerModel()
|
|
| Method Summary | |
|---|---|
void |
addModel(Model model)
Adds the given model to the container. |
void |
apply(ExampleSet exampleSet)
Applies all models. |
Model |
getModel(int index)
Returns the i-th model. |
java.lang.String |
getName()
The default implementation returns the classname without package. |
int |
getNumberOfModels()
Returns the total number of models. |
java.awt.Component |
getVisualisationComponent(IOContainer container)
Returns a visualization component with a model selector. |
void |
readData(java.io.ObjectInputStream in)
reads the model from a stream. |
void |
removeModel(Model model)
Removes the given model from the container. |
void |
setParameter(java.lang.String key,
java.lang.Object value)
Invokes the method for all models. |
java.lang.String |
toResultString()
The default implementation simply returns the result of the method Object.toString(). |
java.lang.String |
toString()
|
void |
writeData(java.io.ObjectOutputStream out)
Writes the model to a stream. |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractModel |
|---|
equals, getExtension, getFileDescription, readModel, readModel, save, writeModel, writeModel |
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, toHTML |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.ResultObject |
|---|
getActions |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
private java.util.List<Model> models
| Constructor Detail |
|---|
public ContainerModel()
| Method Detail |
|---|
public void apply(ExampleSet exampleSet)
throws OperatorException
OperatorExceptionpublic java.lang.String getName()
ResultObjectAdapter
getName in interface ResultObjectgetName in class ResultObjectAdapterpublic void addModel(Model model)
public void removeModel(Model model)
public int getNumberOfModels()
public Model getModel(int index)
public void writeData(java.io.ObjectOutputStream out)
throws java.io.IOException
writeData in class AbstractModeljava.io.IOException
public void readData(java.io.ObjectInputStream in)
throws java.io.IOException
readData in class IOModeljava.io.IOException
public void setParameter(java.lang.String key,
java.lang.Object value)
throws OperatorException
setParameter in interface ModelsetParameter in class AbstractModelOperatorExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toResultString()
ResultObjectAdapterObject.toString().
toResultString in interface ResultObjecttoResultString in class ResultObjectAdapterpublic java.awt.Component getVisualisationComponent(IOContainer container)
getVisualisationComponent in interface ResultObjectgetVisualisationComponent in class ResultObjectAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||