|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectairline.Connection
airline.TextConnection
public class TextConnection
Console-based front end for the airline system.
| Field Summary | |
|---|---|
private Scanner |
scan
A Scanner wrapped around System.in. |
| Fields inherited from class airline.Connection |
|---|
system |
| Constructor Summary | |
|---|---|
TextConnection(AirlineSystem system)
Instantiates a new text-based connection to the given AirlineSystem. |
|
| Method Summary | |
|---|---|
AdministratorSession.AdminMenuChoice |
getAdminMainMenuChoice()
This dialog is responsible for offering the main administrator menu and returning the user's choice. |
AdministratorSession.NewFlightDetails |
getNewFlightInfo()
This dialog is responsible for gathering information from an administrator while adding a new flight to the system. |
User |
loginDialog()
This dialog manages the login process. |
| Methods inherited from class airline.Connection |
|---|
connect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Scanner scan
System.in.
| Constructor Detail |
|---|
public TextConnection(AirlineSystem system)
system - The AirlineSystem associated with this connection| Method Detail |
|---|
public AdministratorSession.AdminMenuChoice getAdminMainMenuChoice()
Connection
getAdminMainMenuChoice in class Connectionpublic AdministratorSession.NewFlightDetails getNewFlightInfo()
Connection
getNewFlightInfo in class Connectionpublic User loginDialog()
ConnectionUser, or to return null
to signify that the application should exit.
loginDialog in class ConnectionUser (or null if none).
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||