Flight.java 2.52 KB
package Alibaba;
import Alibaba.*;

/**
 * flight class is class that simulate the flight information
 * @author mohammadreza
 * @version 1.0
 */
public class Flight {

    private String day;
    private int hour;
    private String I;// starting point 
    private String F;// finishing point
    private String company;
    private Plane plane;
    private int number;
	public Flight(String day, int hour, String I, String F, String company, Plane plane, int number) {
		super();
		this.day = day;
		this.hour = hour;
		this.I = I;
		this.F = F;
		this.company = company;
		this.plane = plane;
		this.number = number;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the day
	 */
	public String getDay() {
		return day;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param day the day to set
	 */
	public void setDay(String day) {
		this.day = day;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the hour
	 */
	public int getHour() {
		return hour;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param hour the hour to set
	 */
	public void setHour(int hour) {
		this.hour = hour;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the i
	 */
	public String getI() {
		return I;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param i the i to set
	 */
	public void setI(String i) {
		I = i;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the f
	 */
	public String getF() {
		return F;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param f the f to set
	 */
	public void setF(String f) {
		F = f;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the company
	 */
	public String getCompany() {
		return company;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param company the company to set
	 */
	public void setCompany(String company) {
		this.company = company;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the plane
	 */
	public Plane getPlane() {
		return plane;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param plane the plane to set
	 */
	public void setPlane(Plane plane) {
		this.plane = plane;
	}
	/**
	 * This is a getter method!
	 * @author mohammadreza
	 * @return the number
	 */
	public int getNumber() {
		return number;
	}
	/**
	 * this is a setter method
	 * @author mohammadreza
	 * @param number the number to set
	 */
	public void setNumber(int number) {
		this.number = number;
	}
	
}