airline
Class CustomerSession
java.lang.Object
airline.CustomerSession
- All Implemented Interfaces:
- UserSession
public class CustomerSession
- extends Object
- implements UserSession
Manages the flow of control for a session with a registered Customer.
- Author:
- Michael goldwasser
|
Method Summary |
void |
mainDialog()
The main menu is first presented to a Customer immediately
after logging in. |
CustomerSession
public CustomerSession(Customer customer,
Connection connect)
- Instantiates a new session for the given Customer and the given
front-end Connection. The constructor does not begin any interactions.
Those should typically be started by calling
mainDialog().
- Parameters:
customer - The Customer instance associated with this sessionconnect - The Connection instance managing the front-end interactions for this session
mainDialog
public void mainDialog()
- The main menu is first presented to a Customer immediately
after logging in. It offers choices for managing existing
reservations or creating new ones.
- Specified by:
mainDialog in interface UserSession