Class LGrid

java.lang.Object
  extended by LGrid

public class LGrid
extends java.lang.Object

The Class LGrid that holds a grid of semaphores.


Constructor Summary
LGrid(int size)
          Instantiates a new looper grid.
 
Method Summary
 LSemaphore get(int i, int j)
          Gets the semaphore on the given spot.
 int length()
          The length of the grid.
 void printTest()
          Prints the test.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LGrid

public LGrid(int size)
Instantiates a new looper grid.

Parameters:
size - the size
Method Detail

get

public LSemaphore get(int i,
                      int j)
Gets the semaphore on the given spot.

Parameters:
i - the i
j - the j
Returns:
the l semaphore

length

public int length()
The length of the grid.

Returns:
the size

printTest

public void printTest()
Prints the test.