|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--cad.simcad.worldsimulator.engine.IntegerSemaphor
| Field Summary | |
protected int |
state
This vlaue represents the internal state of this semaphor. |
| Constructor Summary | |
IntegerSemaphor()
Creates new IntegerSemaphor |
|
| Method Summary | |
int |
getValue()
This method returns the state of the semaphore at the moment. |
void |
setValue(int val)
This method changes the state of the semaphor to the given value. |
void |
waitForChange()
This method blocks until anybody else changed the state of this semaphor. |
void |
waitForValue(int val)
This method blocks until anybody else changed the state of this semaphor to the given value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int state
| Constructor Detail |
public IntegerSemaphor()
| Method Detail |
public void setValue(int val)
public int getValue()
public void waitForChange()
public void waitForValue(int val)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||