|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object airline.Connection
public abstract class Connection
An abstract class representing the front-end connection to a system. Concrete subclasses The required behaviors include interactions with both customers and administrators. Subclasses must implement the various user dialogs.
Field Summary | |
---|---|
protected AirlineSystem |
system
The AirlineSystem with which this instance is connected. |
Constructor Summary | |
---|---|
protected |
Connection(AirlineSystem system)
Creates a new collection to a particular AirlineSystem . |
Method Summary | |
---|---|
void |
connect()
Initiates the connection, starting with a login screen. |
abstract AdministratorSession.AdminMenuChoice |
getAdminMainMenuChoice()
This dialog is responsible for offering the main administrator menu and returning the user's choice. |
abstract AdministratorSession.NewFlightDetails |
getNewFlightInfo()
This dialog is responsible for gathering information from an administrator while adding a new flight to the system. |
abstract User |
loginDialog()
This dialog manages the login process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AirlineSystem system
AirlineSystem
with which this instance is connected.
Constructor Detail |
---|
protected Connection(AirlineSystem system)
AirlineSystem
.
system
- The AirlineSystem
.Method Detail |
---|
public void connect()
mainDialog()
for an appropriate UserSession
.
public abstract AdministratorSession.AdminMenuChoice getAdminMainMenuChoice()
public abstract AdministratorSession.NewFlightDetails getNewFlightInfo()
public abstract User loginDialog()
User
, or to return null
to signify that the application should exit.
User
(or null
if none).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |