|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.port.AbstractSimplePortObject
org.knime.base.node.preproc.discretization.caim2.DiscretizationModel
public class DiscretizationModel
Contains the DiscretizationScheme
s for a given columns.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
---|
PortObject.PortObjectSerializer<T extends PortObject> |
Field Summary | |
---|---|
static PortType |
TYPE
Convenience method to get the type of this port object. |
Constructor Summary | |
---|---|
DiscretizationModel()
Creates an empty and invalid model! Don't use the created instance until loading content. |
|
DiscretizationModel(DiscretizationScheme[] schemes,
DataTableSpec includedColumns)
Creates a new model taking over the schemes (copying them) and storing the included columns. |
|
DiscretizationModel(ModelContentRO content,
DataTableSpec includedCols)
Creates a DiscretizationModel from a
ModelContentRO object. |
Method Summary | |
---|---|
String[] |
getIncludedColumnNames()
Returns names of the columns that are included in the DiscretizationModel . |
DiscretizationScheme[] |
getSchemes()
Returns DiscretizationScheme s of the columns that are included
in the DiscretizationModel . |
PortObjectSpec |
getSpec()
Get specification to this port object. |
String |
getSummary()
Get a short summary of this PortObject . |
protected void |
load(ModelContentRO model,
PortObjectSpec spec,
ExecutionMonitor exec)
Loads the content into the freshly instantiated object. |
protected void |
save(ModelContentWO model,
ExecutionMonitor exec)
Saves this object to model content object. |
void |
saveToModelContent(ModelContentWO modelContent)
Saves this model to a ModelContentWO object. |
Methods inherited from class org.knime.core.node.port.AbstractSimplePortObject |
---|
equals, getPortObjectSerializer, getViews, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PortType TYPE
Constructor Detail |
---|
public DiscretizationModel(ModelContentRO content, DataTableSpec includedCols) throws InvalidSettingsException
DiscretizationModel
from a
ModelContentRO
object.
content
- the content object to restore the model fromincludedCols
- the columns included when building in the model
InvalidSettingsException
- if the model content is not validpublic DiscretizationModel()
load(ModelContentRO, PortObjectSpec, ExecutionMonitor)
public DiscretizationModel(DiscretizationScheme[] schemes, DataTableSpec includedColumns)
schemes
- the schemes for this modelincludedColumns
- the included columns, used to build the schemesMethod Detail |
---|
public String[] getIncludedColumnNames()
DiscretizationModel
.
DiscretizationModel
.public DiscretizationScheme[] getSchemes()
DiscretizationScheme
s of the columns that are included
in the DiscretizationModel
.
DiscretizationScheme
s of the columns that are
included in the DiscretizationModel
.public void saveToModelContent(ModelContentWO modelContent)
ModelContentWO
object.
modelContent
- the ModelContentWO
object to store the
DiscretizationModel
topublic PortObjectSpec getSpec()
PortObjectSpec
which is used to configure any successor node
after execution, e.g. a BufferedDataTable
can return a
DataTableSpec
.
Subclasses should narrow the return type if possible.
PortObjectSpec
or any derived spec,
never null
.public String getSummary()
PortObject
.
The return value will be shown in a node port's tooltip, for instance.
protected void load(ModelContentRO model, PortObjectSpec spec, ExecutionMonitor exec) throws InvalidSettingsException, CanceledExecutionException
load
in class AbstractSimplePortObject
model
- To load from.spec
- The accompanying spec (which can be safely cast to the
expected class).exec
- For progress/cancelation.
InvalidSettingsException
- If settings are incomplete/deficient.
CanceledExecutionException
- If canceled.protected void save(ModelContentWO model, ExecutionMonitor exec) throws CanceledExecutionException
save
in class AbstractSimplePortObject
model
- To save to.exec
- For progress/cancelation.
CanceledExecutionException
- If canceled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |