|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectevacuation.EvacueeQueue
public class EvacueeQueue
This class represents a waiting list for people fleeing a sinking ship.
| Constructor Summary | |
|---|---|
EvacueeQueue()
Constructs an empty EvacueeQueue. |
|
| Method Summary | |
|---|---|
void |
add(Evacuee e)
Adds a person to the waiting list to get off the ship. |
Evacuee |
getNextEvacuee()
Returns the person in the waiting list with highest priority to get off the ship, and removes them from the list. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvacueeQueue()
| Method Detail |
|---|
public void add(Evacuee e)
e - The person to add to the listpublic Evacuee getNextEvacuee()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||