|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.mem.StoredFloat
public class StoredFloat
A class implementing a backtrackable float variable.
Constructor Summary | |
---|---|
StoredFloat(Environment env)
Constructs a stored search with an unknown initial value. |
|
StoredFloat(Environment env,
double d)
Constructs a stored search with an initial value. |
Method Summary | |
---|---|
void |
add(double delta)
modifying a StoredInt by an increment |
double |
get()
Returns the current value. |
Environment |
getEnvironment()
Retrieving the environment |
boolean |
isKnown()
Checks if a value is currently stored. |
void |
set(double y)
Modifies the value and stores if needed the former value on the trailing stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoredFloat(Environment env)
public StoredFloat(Environment env, double d)
Method Detail |
---|
public double get()
public boolean isKnown()
public void set(double y)
public void add(double delta)
delta
- public Environment getEnvironment()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |