public class RcObject extends Object implements IStateObject, RecomputableElement
Modifier and Type | Field and Description |
---|---|
protected EnvironmentCopying |
environment |
protected int |
timeStamp |
BOOL, DOUBLE, DOUBLEVECTOR, INT, INTVECTOR, LONG, NB_TYPE, OBJECT, VECTOR
Constructor and Description |
---|
RcObject(EnvironmentCopying env,
Object obj) |
Modifier and Type | Method and Description |
---|---|
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() |
protected final EnvironmentCopying environment
protected int timeStamp
public RcObject(EnvironmentCopying env, Object obj)
public Object get()
public void set(Object y)
public void _set(Object y, int wstamp)
y
- the new valuewstamp
- the stamp of the world in which the update is performedpublic IEnvironment getEnvironment()
public Object deepCopy()
public int getType()
public int getTimeStamp()
getTimeStamp
in interface RecomputableElement
Copyright © 2015. All rights reserved.