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