public abstract class IStateDouble extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected double |
currentValue |
protected IEnvironment |
environment |
protected int |
timeStamp |
Constructor and Description |
---|
IStateDouble(IEnvironment env,
double i) |
Modifier and Type | Method and Description |
---|---|
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()
Make a deep copy of this.
|
double |
get()
Returns the current value.
|
IEnvironment |
getEnvironment()
Retrieving the environment
|
int |
getTimeStamp() |
void |
overrideTimeStamp(int aTimeStamp) |
abstract void |
set(double y)
Modifies the value and stores if needed the former value on the
trailing stack.
|
String |
toString() |
protected final IEnvironment environment
protected double currentValue
protected int timeStamp
public IStateDouble(IEnvironment env, double i)
public final double get()
public abstract void set(double y)
public final double add(double delta)
delta
- increment valuepublic void _set(double y, int wstamp)
y
- the new valuewstamp
- the stamp of the world in which the update is performedpublic final double deepCopy()
public int getTimeStamp()
public void overrideTimeStamp(int aTimeStamp)
public IEnvironment getEnvironment()
Copyright © 2015. All rights reserved.