|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<LSemaphore>
LBody
public class LBody
The Class LBody that symbolizes the body of the looper.
| Constructor Summary | |
|---|---|
LBody(LSemaphore s)
Instantiates a new looper body. |
|
| Method Summary | |
|---|---|
int |
getHeadX()
Gets the head x. |
int |
getHeadY()
Gets the head y. |
void |
move(LSemaphore[] s)
Moves all the elements of the looper. |
void |
releaseAll()
Release all. |
void |
removeTail()
Removes the tail. |
boolean |
updateHead(LSemaphore s)
Adds the new semaphore as the head of the body |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public LBody(LSemaphore s)
s - the semaphore| Method Detail |
|---|
public void move(LSemaphore[] s)
s - the semaphorepublic boolean updateHead(LSemaphore s)
s - the semaphore
public void removeTail()
public void releaseAll()
public int getHeadX()
public int getHeadY()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||