org.knime.base.node.mine.decisiontree2.learner
Class AtomicDouble

java.lang.Object
  extended by org.knime.base.node.mine.decisiontree2.learner.AtomicDouble

public class AtomicDouble
extends Object

Implements an atomic double (i.e. synchronized double).

Author:
Christoph Sieb, University of Konstanz

Constructor Summary
AtomicDouble(double value)
          Creates an atomic double with the given value.
 
Method Summary
 double getValue()
          Returns the value.
 double incrementAndGet(double incrementValue)
          Decrements this double by the given decrement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicDouble

public AtomicDouble(double value)
Creates an atomic double with the given value.

Parameters:
value - the initial value to set
Method Detail

getValue

public double getValue()
Returns the value.

Returns:
the value

incrementAndGet

public double incrementAndGet(double incrementValue)
Decrements this double by the given decrement.

Parameters:
incrementValue - the value to subtract from this double
Returns:
the value after incrementing


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.