common
Class FlightOptions

java.lang.Object
  |
  +--common.FlightOptions
All Implemented Interfaces:
Serializable

public class FlightOptions
extends Object
implements Serializable

A wrapper that holds the departing and return flight options for a given query.

Author:
Team Two: Matthew Bass, Vijay Sai, Mannik Bhojwani, Paulo Merson
See Also:
Serialized Form

Constructor Summary
FlightOptions(boolean isTwoWay, int numberOfPassengers, Date departDate, Date returnDate)
          Constructor for FlightOptions.
 
Method Summary
 Date getDepartDate()
          Returns the departDate.
 Vector getDepartingFlights()
          Returns the departingFlights.
 int getNumberOfPassengers()
          Returns the numberOfPassengers.
 Date getReturnDate()
          Returns the returnDate.
 Vector getReturningFlights()
          Returns the returningFlights.
 boolean isTwoWay()
          Returns the isTwoWay.
 void setDepartDate(Date departDate)
          Sets the departDate.
 void setDepartingFlights(Vector departingFlights)
          Sets the departingFlights.
 void setIsTwoWay(boolean isTwoWay)
          Sets the isTwoWay.
 void setNumberOfPassengers(int numberOfPassengers)
          Sets the numberOfPassengers.
 void setReturnDate(Date returnDate)
          Sets the returnDate.
 void setReturningFlights(Vector returningFlights)
          Sets the returningFlights.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlightOptions

public FlightOptions(boolean isTwoWay,
                     int numberOfPassengers,
                     Date departDate,
                     Date returnDate)
Constructor for FlightOptions.
Method Detail

getDepartingFlights

public Vector getDepartingFlights()
Returns the departingFlights.
Returns:
Vector of FlightValue objects

isTwoWay

public boolean isTwoWay()
Returns the isTwoWay.
Returns:
boolean

getNumberOfPassengers

public int getNumberOfPassengers()
Returns the numberOfPassengers.
Returns:
int

getReturningFlights

public Vector getReturningFlights()
Returns the returningFlights.
Returns:
Vector of FlightValue objects

setDepartingFlights

public void setDepartingFlights(Vector departingFlights)
Sets the departingFlights.
Parameters:
departingFlights - The departingFlights to set

setIsTwoWay

public void setIsTwoWay(boolean isTwoWay)
Sets the isTwoWay.
Parameters:
isTwoWay - The isTwoWay to set

setNumberOfPassengers

public void setNumberOfPassengers(int numberOfPassengers)
Sets the numberOfPassengers.
Parameters:
numberOfPassengers - The numberOfPassengers to set

setReturningFlights

public void setReturningFlights(Vector returningFlights)
Sets the returningFlights.
Parameters:
returningFlights - The returningFlights to set

getDepartDate

public Date getDepartDate()
Returns the departDate.
Returns:
Date

getReturnDate

public Date getReturnDate()
Returns the returnDate.
Returns:
Date

setDepartDate

public void setDepartDate(Date departDate)
Sets the departDate.
Parameters:
departDate - The departDate to set

setReturnDate

public void setReturnDate(Date returnDate)
Sets the returnDate.
Parameters:
returnDate - The returnDate to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003 Team Two.