airline
Class Customer

java.lang.Object
  extended by airline.User
      extended by airline.Customer
All Implemented Interfaces:
Serializable

public class Customer
extends User

Represents a User who is a customer of the airline (i.e., one who can make and purchase reservations).

Author:
Michael Goldwasser
See Also:
Serialized Form

Field Summary
private  String fullName
          Full name of customer (needed as a passenger).
 
Fields inherited from class airline.User
ID, password
 
Constructor Summary
Customer(String fullName, String userID, String pwd)
          Instantiates a new customer.
 
Method Summary
 String getFullName()
          Returns the full name of this customer.
 UserSession getSession(Connection connect)
          Overrides the factory function User.getSession in order to provide an appropriate CustomerSession.
 
Methods inherited from class airline.User
getUserID, verifyPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullName

private String fullName
Full name of customer (needed as a passenger).

Constructor Detail

Customer

public Customer(String fullName,
                String userID,
                String pwd)
Instantiates a new customer.

Parameters:
fullName - The name of this customer
userID - A unique user ID for use when logging into the system
pwd - The password for use when logging into the system
Method Detail

getFullName

public String getFullName()
Returns the full name of this customer.

Returns:
String

getSession

public UserSession getSession(Connection connect)
Overrides the factory function User.getSession in order to provide an appropriate CustomerSession.

Specified by:
getSession in class User
Parameters:
connect - The user-inteface Connection.
Returns:
A new CustomerSession.