|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlij.runtime.LetterBox
public class LetterBox
This class provides functionality for sending and receiving messages (encapsulated in Letter instances).
Field Summary | |
---|---|
private java.util.ArrayList<Letter> |
letters
|
private Monitor |
monitor
|
Constructor Summary | |
---|---|
LetterBox(Monitor _monitor)
Constructor. |
Method Summary | |
---|---|
Letter |
getLetter(LetterPostData postData)
Attempts to retrieve the specified Letter from the letter queue. |
void |
putLetter(Letter letter)
Puts the specified Letter into the letter queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Letter> letters
private Monitor monitor
Constructor Detail |
---|
public LetterBox(Monitor _monitor)
_monitor
- A pointer to the monitor GUI.Method Detail |
---|
public Letter getLetter(LetterPostData postData)
postData
- The post data of the Letter being looked for.
public void putLetter(Letter letter)
letter
- The Letter to put into the queue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |