|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.Semaphore
LSemaphore
public class LSemaphore
The Class LSemaphore holds info on a semaphore in the grid of the looper game.
Constructor Summary | |
---|---|
LSemaphore(int permits,
int x,
int y)
Instantiates a new looper semaphore. |
Method Summary | |
---|---|
int |
getX()
Gets the x. |
int |
getY()
Gets the y. |
Methods inherited from class java.util.concurrent.Semaphore |
---|
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueueLength, hasQueuedThreads, isFair, release, release, toString, tryAcquire, tryAcquire, tryAcquire, tryAcquire |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LSemaphore(int permits, int x, int y)
permits
- the permitsx
- the xy
- the yMethod Detail |
---|
public int getX()
public int getY()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |