choco.kernel.memory.copy
Class RcObject

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

public class RcObject
extends Object
implements IStateObject, 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
RcObject(EnvironmentCopying env, Object obj)
           
 
Method Summary
protected  void _set(Object y, int wstamp)
          Modifies the value without storing the former value on the trailing stack.
 Object deepCopy()
           
 Object get()
           
 IEnvironment getEnvironment()
           
 int getTimeStamp()
           
 int getType()
           
 void set(Object y)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RcObject

public RcObject(EnvironmentCopying env,
                Object obj)
Method Detail

get

public Object get()

set

public void set(Object y)

_set

protected void _set(Object 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()

deepCopy

public Object 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.