Class LSemaphore

java.lang.Object
  extended by java.util.concurrent.Semaphore
      extended by LSemaphore
All Implemented Interfaces:
java.io.Serializable

public class LSemaphore
extends java.util.concurrent.Semaphore

The Class LSemaphore holds info on a semaphore in the grid of the looper game.

See Also:
Serialized Form

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

LSemaphore

public LSemaphore(int permits,
                  int x,
                  int y)
Instantiates a new looper semaphore.

Parameters:
permits - the permits
x - the x
y - the y
Method Detail

getX

public int getX()
Gets the x.

Returns:
the x

getY

public int getY()
Gets the y.

Returns:
the y