| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable EDU.oswego.cs.dl.util.concurrent.SynchronizedFloat EDU.oswego.cs.dl.util.concurrent.WaitableFloat
Constructor Summary | |
public | WaitableFloat(float initialValue) Make a new WaitableFloat with the given initial value,
and using its own internal lock. | public | WaitableFloat(float initialValue, Object lock) Make a new WaitableFloat with the given initial value,
and using the supplied lock. |
Method Summary | |
public float | add(float amount) | public boolean | commit(float assumedValue, float newValue) | public float | divide(float factor) | public float | multiply(float factor) | public float | set(float newValue) | public float | subtract(float amount) | public void | whenEqual(float c, Runnable action) Wait until value equals c, then run action if nonnull. | public void | whenGreater(float c, Runnable action) wait until value greater than c, then run action if nonnull. | public void | whenGreaterEqual(float c, Runnable action) wait until value greater than or equal to c, then run action if nonnull. | public void | whenLess(float c, Runnable action) wait until value less than c, then run action if nonnull. | public void | whenLessEqual(float c, Runnable action) wait until value less than or equal to c, then run action if nonnull. | public void | whenNotEqual(float c, Runnable action) wait until value not equal to c, then run action if nonnull. |
WaitableFloat | public WaitableFloat(float initialValue)(Code) | | Make a new WaitableFloat with the given initial value,
and using its own internal lock.
|
WaitableFloat | public WaitableFloat(float initialValue, Object lock)(Code) | | Make a new WaitableFloat with the given initial value,
and using the supplied lock.
|
add | public float add(float amount)(Code) | | |
commit | public boolean commit(float assumedValue, float newValue)(Code) | | |
divide | public float divide(float factor)(Code) | | |
multiply | public float multiply(float factor)(Code) | | |
set | public float set(float newValue)(Code) | | |
subtract | public float subtract(float amount)(Code) | | |
whenEqual | public void whenEqual(float c, Runnable action) throws InterruptedException(Code) | | Wait until value equals c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreater | public void whenGreater(float c, Runnable action) throws InterruptedException(Code) | | wait until value greater than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreaterEqual | public void whenGreaterEqual(float c, Runnable action) throws InterruptedException(Code) | | wait until value greater than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLess | public void whenLess(float c, Runnable action) throws InterruptedException(Code) | | wait until value less than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLessEqual | public void whenLessEqual(float c, Runnable action) throws InterruptedException(Code) | | wait until value less than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotEqual | public void whenNotEqual(float c, Runnable action) throws InterruptedException(Code) | | wait until value not equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedFloat | protected float value_(Code)(Java Doc)
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable | final protected Object lock_(Code)(Java Doc)
|
|
|