org.knime.core.node.workflow
Class SingleNodeContainer.SingleNodeContainerSettings

java.lang.Object
  extended by org.knime.core.node.workflow.SingleNodeContainer.SingleNodeContainerSettings
All Implemented Interfaces:
Cloneable
Enclosing class:
SingleNodeContainer

public static class SingleNodeContainer.SingleNodeContainerSettings
extends Object
implements Cloneable

Handles the settings specific to a SingleNodeContainer. Reads and writes them from and into a NodeSettings object.


Constructor Summary
SingleNodeContainer.SingleNodeContainerSettings()
          Creates a settings object with default values.
SingleNodeContainer.SingleNodeContainerSettings(NodeSettingsRO settings)
          Creates a new instance holding the settings contained in the specified object.
 
Method Summary
protected  SingleNodeContainer.SingleNodeContainerSettings clone()
          
 SingleNodeContainer.MemoryPolicy getMemoryPolicy()
          Returns the memory policy currently stored in this settings object.
 void save(NodeSettingsWO settings)
          Writes the current settings values into the passed argument.
 void setMemoryPolicy(SingleNodeContainer.MemoryPolicy memPolicy)
          Store a new memory policy in this settings object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleNodeContainer.SingleNodeContainerSettings

public SingleNodeContainer.SingleNodeContainerSettings()
Creates a settings object with default values.


SingleNodeContainer.SingleNodeContainerSettings

public SingleNodeContainer.SingleNodeContainerSettings(NodeSettingsRO settings)
                                                throws InvalidSettingsException
Creates a new instance holding the settings contained in the specified object. The settings object must be one this class has saved itself into (and not a job manager settings object).

Parameters:
settings - the object with the settings to read
Throws:
InvalidSettingsException - if the settings in the argument are invalid
Method Detail

save

public void save(NodeSettingsWO settings)
Writes the current settings values into the passed argument.

Parameters:
settings - the object to write the settings into.

setMemoryPolicy

public void setMemoryPolicy(SingleNodeContainer.MemoryPolicy memPolicy)
Store a new memory policy in this settings object.

Parameters:
memPolicy - the new policy to set

getMemoryPolicy

public SingleNodeContainer.MemoryPolicy getMemoryPolicy()
Returns the memory policy currently stored in this settings object.

Returns:
the memory policy currently stored in this settings object.

clone

protected SingleNodeContainer.SingleNodeContainerSettings clone()

Overrides:
clone in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.