org.knime.base.node.meta.looper
Class LoopStartIntervalSettings

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

public class LoopStartIntervalSettings
extends Object

This class holds the settings for the loop interval start node.

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
LoopStartIntervalSettings()
           
 
Method Summary
 double from()
          Returns the interval's start value.
 void from(double f)
          Sets the interval's start value.
 boolean integerLoop()
          Returns if the loop should iterate over integer and not doubles.
 void integerLoop(boolean il)
          Sets if the loop should iterate over integer and not doubles.
 void loadSettings(NodeSettingsRO settings)
          Loads the settings from the node settings object.
 void loadSettingsForDialog(NodeSettingsRO settings)
          Loads the settings from the node settings object.
 void saveSettingsTo(NodeSettingsWO settings)
          Writes the settings into the node settings object.
 double step()
          Returns the loop's step size.
 void step(double s)
          Sets the loop's step size.
 double to()
          Returns the interval's end value.
 void to(double t)
          Sets the interval's end value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopStartIntervalSettings

public LoopStartIntervalSettings()
Method Detail

integerLoop

public boolean integerLoop()
Returns if the loop should iterate over integer and not doubles.

Returns:
true if the loop is over integers

integerLoop

public void integerLoop(boolean il)
Sets if the loop should iterate over integer and not doubles.

Parameters:
il - true if the loop is over integers

from

public double from()
Returns the interval's start value.

Returns:
the interval's start value

from

public void from(double f)
Sets the interval's start value.

Parameters:
f - the interval's start value

to

public double to()
Returns the interval's end value.

Returns:
the interval's end value

to

public void to(double t)
Sets the interval's end value.

Parameters:
t - the interval's end value

step

public double step()
Returns the loop's step size.

Returns:
the interval's end value

step

public void step(double s)
Sets the loop's step size.

Parameters:
s - the interval's end value

loadSettingsForDialog

public void loadSettingsForDialog(NodeSettingsRO settings)
Loads the settings from the node settings object.

Parameters:
settings - a node settings object

loadSettings

public void loadSettings(NodeSettingsRO settings)
                  throws InvalidSettingsException
Loads the settings from the node settings object.

Parameters:
settings - a node settings object
Throws:
InvalidSettingsException - if some settings are missing

saveSettingsTo

public void saveSettingsTo(NodeSettingsWO settings)
Writes the settings into the node settings object.

Parameters:
settings - a node settings 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.