|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Ferry
| Field Summary | |
private int[] |
capacity
|
private boolean |
ferryempty
|
private boolean |
ferryfull
|
private int |
nextin
|
private int |
nextout
|
private java.awt.TextArea |
output
|
private int |
temp
|
private boolean |
yesno
|
| Constructor Summary | |
Ferry(java.awt.TextArea ta)
Constructor Initializing the output textbox |
|
| Method Summary | |
void |
add(int c)
The Synchronized thread used to add in new customers. |
void |
carry(int z)
Synchronized thread used to take the customers into the ferry. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int[] capacity
private int nextout
private int nextin
private int temp
private boolean yesno
private boolean ferryfull
private boolean ferryempty
private java.awt.TextArea output
| Constructor Detail |
public Ferry(java.awt.TextArea ta)
| Method Detail |
public void carry(int z)
public void add(int c)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||