choco.kernel.memory.copy
Class RcDouble

java.lang.Object
  extended by choco.kernel.memory.copy.RcDouble
All Implemented Interfaces:
RecomputableElement, IStateDouble

public final class RcDouble
extends Object
implements IStateDouble, RecomputableElement


Field Summary
 
Fields inherited from interface choco.kernel.memory.copy.RecomputableElement
BOOL, DOUBLE, DOUBLEVECTOR, INT, INTVECTOR, LONG, LONGVECTOR, NB_TYPE, OBJECT, VECTOR
 
Constructor Summary
RcDouble(EnvironmentCopying env)
           
RcDouble(EnvironmentCopying env, double i)
           
 
Method Summary
protected  void _set(double y, int wstamp)
          Modifies the value without storing the former value on the trailing stack.
 double add(double delta)
          modifying a StoredInt by an increment
 double deepCopy()
           
 double get()
          Returns the current value.
 IEnvironment getEnvironment()
          Retrieving the environment
 int getTimeStamp()
           
 int getType()
           
 void set(double y)
          Modifies the value and stores if needed the former value on the trailing stack.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RcDouble

public RcDouble(EnvironmentCopying env)

RcDouble

public RcDouble(EnvironmentCopying env,
                double i)
Method Detail

add

public double add(double delta)
Description copied from interface: IStateDouble
modifying a StoredInt by an increment

Specified by:
add in interface IStateDouble

get

public double get()
Description copied from interface: IStateDouble
Returns the current value.

Specified by:
get in interface IStateDouble

set

public void set(double y)
Description copied from interface: IStateDouble
Modifies the value and stores if needed the former value on the trailing stack.

Specified by:
set in interface IStateDouble

_set

protected void _set(double y,
                    int wstamp)
Modifies the value without storing the former value on the trailing stack.

Parameters:
y - the new value
wstamp - the stamp of the world in which the update is performed

getEnvironment

public IEnvironment getEnvironment()
Description copied from interface: IStateDouble
Retrieving the environment

Specified by:
getEnvironment in interface IStateDouble

deepCopy

public double deepCopy()

getType

public int getType()
Specified by:
getType in interface RecomputableElement

getTimeStamp

public int getTimeStamp()
Specified by:
getTimeStamp in interface RecomputableElement

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.