vo
Class FlightValue

java.lang.Object
  |
  +--vo.FlightValue
All Implemented Interfaces:
Serializable

public class FlightValue
extends Object
implements Serializable

The details of an individual flight. (This is a value object - the value object design pattern is used to facilitante data transfers between objects and minimize the amount of data transferred.)

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

Constructor Summary
FlightValue()
          Constructor for FlightValue.
 
Method Summary
 String getArrivalCity()
          Returns the arrivalCity.
 Time getArrivalTime()
          Returns the arrivalTime.
 String getDepartureCity()
          Returns the departureCity.
 Time getDepatureTime()
          Returns the depatureTime.
 String getFlightNumber()
          Returns the flightNumber.
 double getPrice()
          Returns the price.
 void setArrivalCity(String arrivalCity)
          Sets the arrivalCity.
 void setArrivalTime(Time arrivalTime)
          Sets the arrivalTime.
 void setDepartureCity(String departureCity)
          Sets the departureCity.
 void setDepatureTime(Time depatureTime)
          Sets the depatureTime.
 void setFlightNumber(String flightNumber)
          Sets the flightNumber.
 void setPrice(double price)
          Sets the price.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlightValue

public FlightValue()
Constructor for FlightValue.
Method Detail

getArrivalCity

public String getArrivalCity()
Returns the arrivalCity.
Returns:
String

getArrivalTime

public Time getArrivalTime()
Returns the arrivalTime.
Returns:
Time

getDepartureCity

public String getDepartureCity()
Returns the departureCity.
Returns:
String

getDepatureTime

public Time getDepatureTime()
Returns the depatureTime.
Returns:
Time

getFlightNumber

public String getFlightNumber()
Returns the flightNumber.
Returns:
String

getPrice

public double getPrice()
Returns the price.
Returns:
double

setArrivalCity

public void setArrivalCity(String arrivalCity)
Sets the arrivalCity.
Parameters:
arrivalCity - The arrivalCity to set

setArrivalTime

public void setArrivalTime(Time arrivalTime)
Sets the arrivalTime.
Parameters:
arrivalTime - The arrivalTime to set

setDepartureCity

public void setDepartureCity(String departureCity)
Sets the departureCity.
Parameters:
departureCity - The departureCity to set

setDepatureTime

public void setDepatureTime(Time depatureTime)
Sets the depatureTime.
Parameters:
depatureTime - The depatureTime to set

setFlightNumber

public void setFlightNumber(String flightNumber)
Sets the flightNumber.
Parameters:
flightNumber - The flightNumber to set

setPrice

public void setPrice(double price)
Sets the price.
Parameters:
price - The price to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003 Team Two.