|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.memory.copy.RcDouble
public final class RcDouble
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 |
---|
public RcDouble(EnvironmentCopying env)
public RcDouble(EnvironmentCopying env, double i)
Method Detail |
---|
public double add(double delta)
IStateDouble
add
in interface IStateDouble
public double get()
IStateDouble
get
in interface IStateDouble
public void set(double y)
IStateDouble
set
in interface IStateDouble
protected void _set(double y, int wstamp)
y
- the new valuewstamp
- the stamp of the world in which the update is performedpublic IEnvironment getEnvironment()
IStateDouble
getEnvironment
in interface IStateDouble
public double deepCopy()
public int getType()
getType
in interface RecomputableElement
public int getTimeStamp()
getTimeStamp
in interface RecomputableElement
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |