org.knime.base.node.meta.looper.chunk
Class LoopStartChunkConfiguration

java.lang.Object
  extended by org.knime.base.node.meta.looper.chunk.LoopStartChunkConfiguration

final class LoopStartChunkConfiguration
extends Object

Configuration object to loop start chunking node.

Author:
Bernd Wiswedel, KNIME.com, Zurich, Switzerland

Nested Class Summary
(package private) static class LoopStartChunkConfiguration.Mode
          Policy how to do the chunking.
 
Constructor Summary
LoopStartChunkConfiguration()
           
 
Method Summary
(package private)  LoopStartChunkConfiguration.Mode getMode()
           
(package private)  int getNrOfChunks()
           
(package private)  int getNrRowsPerChunk()
           
(package private)  void loadSettingsInDialog(NodeSettingsRO settings)
          Load settings in dialog, use default if invalid.
(package private)  void loadSettingsInModel(NodeSettingsRO settings)
          Load settings in model, fails if incomplete.
(package private)  void saveSettingsTo(NodeSettingsWO settings)
          Saves current settings to argument.
(package private)  void setMode(LoopStartChunkConfiguration.Mode mode)
           
(package private)  void setNrOfChunks(int nrOfChunks)
           
(package private)  void setNrRowsPerChunk(int nrRowsPerChunk)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoopStartChunkConfiguration

LoopStartChunkConfiguration()
Method Detail

getMode

LoopStartChunkConfiguration.Mode getMode()
Returns:
the mode

setMode

void setMode(LoopStartChunkConfiguration.Mode mode)
       throws InvalidSettingsException
Parameters:
mode - the mode to set
Throws:
InvalidSettingsException - If argument is null.

getNrRowsPerChunk

int getNrRowsPerChunk()
Returns:
the nrRowsPerChunk

setNrRowsPerChunk

void setNrRowsPerChunk(int nrRowsPerChunk)
                 throws InvalidSettingsException
Parameters:
nrRowsPerChunk - the nrRowsPerChunk to set
Throws:
InvalidSettingsException - If argument < 1

getNrOfChunks

int getNrOfChunks()
Returns:
the nrOfChunks

setNrOfChunks

void setNrOfChunks(int nrOfChunks)
             throws InvalidSettingsException
Parameters:
nrOfChunks - the nrOfChunks to set
Throws:
InvalidSettingsException - If argument < 1

saveSettingsTo

void saveSettingsTo(NodeSettingsWO settings)
Saves current settings to argument.

Parameters:
settings - To save to.

loadSettingsInModel

void loadSettingsInModel(NodeSettingsRO settings)
                   throws InvalidSettingsException
Load settings in model, fails if incomplete.

Parameters:
settings - To load from.
Throws:
InvalidSettingsException - If invalid.

loadSettingsInDialog

void loadSettingsInDialog(NodeSettingsRO settings)
Load settings in dialog, use default if invalid.

Parameters:
settings - To load from.

toString

public String toString()

Overrides:
toString in class Object


Copyright, 2003 - 2012. 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.