Senin, 24 Oktober 2016

Gimana sih Use Casenya FlightReservation??

Jadi gini. Sama seperti usecase nya ATM yang kemaren2, kali ini saya membuat use case Flight Reservation.

USE CASE DIAGRAM




SEQUENCE DIAGRAM














CLASS DIAGRAM



IMPLEMENTASI
public class systemUsers
 {

        static ManageVector system1 = new ManageVector("login1.txt");
    
    static Vector systemuser1 = new Vector();

        public static void saveUser()
    {
        system1.saveVector(systemuser1);
    }

        public static void loadUser()
    {    
        systemuser1 = system1.loadVector();
    }

public class flightResDetails extends FlightDetails  
    {
        String Name;
        String Address;
        int phone;
        String Email;
        final String[] ReservationType = {"FirstClass","SecondClass","ThirdClass"};
        String Res;
        int Num_OfResSeats;


 public class FlightDetails implements Serializable
  {
        public String Flight_Num;
        public String FlightDate;
        public String Time;
        public int Num_Of_Seats;
        public String Source;
        public String Destination;
    



public class flightMenu //extends mainSystem
{
    static Vector fDetails = new Vector();    

    static ManageVector  manage = new ManageVector("sample.txt");   

    static Vector fResDetails = new Vector();    

    static ManageVector res = new ManageVector("res.txt"); 


public class flightResMenu    
{

    static Vector fResDetails = new Vector();    

    static Vector fDetails = new Vector();    
    
    static ManageVector manager = new ManageVector();  

public class ManageVector
{


public Vector myVector = new Vector();

public String filePath;



3 komentar: