Professional Documents
Culture Documents
Software
SKELETON CODE
Version 6 DL 16/12/2011
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Document Version Control System - Google web docs Document Management Control - Google web docs
Version
v4
Document Authors Mr Adrian Ashley Mr. Mohamed Hagras Mr. Akilu Rilwan Muhammad Mr. Zhao Jian
CONTENTS
1.0 INTRODUCTION
2|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Travel Itinerary Planning System 1.1 OBJECTIVES Version 2 - 03/12/2011 2.0 CLASS DIAGRAM 3.0 USE CASE DESCRIPTION & SEQUENCE DIAGRAM
Bibliography
Glossary
APPENDIX A - Project Management APPENDIX B - QUALITY CONTROL APPENDIX C - Extended Use case diagram APPENDIX D - Risk Management Class diagram APPENDIX E Google Map Investigation Map API APPENDIX F Google Map Investigation Map API
1.0 INTRODUCTION
Customers contact details Mr Dharam Shadija, Mr Steve Lofthouse
3|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
4|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Figure 1 Class Diagram by Rational Rose (please see the attached file)
5|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
System Response Prompt for user details store users details into the database Account created successfully. System Response If unable to create account Display warning message "User already exists " Display message "Please enter new details"
Login
6|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
7|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
i) ii)
8|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Create travel Itinerary CTI-01 Registered user: itinerary owner User selects create new travel itinerary User search for itinerary contents (flight, hotel etc...). User selects the contents he likes from the search results. User selects publish to share it with his friends or make it private. User submit content System updates user's travel itinerary. User logged in new travel itinerary Actor Input 1 Select create itinerary 2 3 Select privacy level share with friends or private 4 insert itinerary content Flight, Hotels, Events 5 6 Select publish itinerary 7 8 User Confirm details 9 10 Actor Input
in each content details Confirm publish literary and privacy level Update the database Publish the itinerary System Response
Alternates
9|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
10 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
ATIC-01 Registered user: itinerary owner User selects the travel itinerary he wants to add contents to. User puts the new contents into the fields of the itinerary contents. User selects publish to share it with his friends or make it private. User submits. User is logged in Updated user travel itinerary Actor Input System Response 1 Selects the itinerary Selects the itinerary entry 2 Fill the itinerary contents' fields 3 Select update itinerary 4 Confirm update itinerary entries 5 User Confirm changes 6 Update the database 7 Publish the itinerary Actor Input System Response
11 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
ETIC-01 Registered user: itinerary owner User selects the travel itinerary he wants to manage. User selects edit or delete his travel itinerary contents. User selects publish to share it with his friends or make it private. User submits. User is logged in Updated user travel itinerary Actor Input 1 Selects the itinerary Selects the itinerary entry 2 Select function edit or delete 3 Select update itinerary 4 5 User Confirm changes 6 7 Actor Input
System Response Confirm update itinerary entries Update the database Publish the itinerary System Response
Alternates
12 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
System Response Confirm delete itinerary Delete itinerary Publish update System Response
13 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Add Friends
14 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
15 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Remove Friend.
16 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
System Response Remove friend from list and user from friends list System Response
17 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
18 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
14. Use Case Name: Invite a friend or more to an itinerary so it will be owned by them too.
19 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
15. Use Case Name: Accept friends invitation to share the ownership of an itinerary with him.
20 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
System Response Add the itinerary into his itineraries. System Response
Alternates
16. Use Case Name: Create a group with role based so everyone included inside the group will have different privileges and make it private or public.
21 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Create a group with role based so everyone included inside the group will have different privileges and make it private or public.CAGWRB-01
Registered user: Group Admin Selects Create Group. Adds group details. Submits. User is logged in Updated user's itineraries list. Actor Input 1 Selects Create Group. 2 Adds group details. 3 Submits. Actor Input
Alternates
22 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
23 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
System Response Add the user into the group. System Response
24 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
Edit a group.
25 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
26 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Alternates
27 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
15 16 17 18 19 20 21 22 23 24 25
/*==========================================================<> Notes x * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> Booking x * Hallam Internet Systems Ltd * ---------------------------------------------------------<> Booking Status x * Document - Quality - Version Control Accommodation x * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian meetings x * --------------------------------------------------------<> * Date 16/12/2011 restaurants x *===========================================================<> * Class Name : Login ship x * Class Interactions / Dependencies : Database, Session * transport (interface) ===========================================================<> */ flight x class Login { train //========================================< Attributes> x private String userName = ""; vehicle rental String userPassword = ""; x private //========================================< Methods > bike rental x public String getUserName() { return userName; car rental x } boat rental x public void setUserName(String userName) { notifications this.userName = userName; x } travel agent x public String getUserPassword() { group x return userPassword; group } board x public void setUserPassword(String userPassword) { group board comment x this.userPassword = userPassword; } public boolean validateUser(String usrName, String password ) { boolean isValid; /* 1-Login(1.1 validateLogin)Database 2-Database(1.1.1 isvalid)Database 3-Database(1.1.2 isValid)Login */ if (isValid) { // 4-Database)1.1.3 strat_session)Session // 1.1.2.1 displayMessage(Succsess) }else{ } } } // 1.1.2.2 displayMessage(Fail)
1 Login
28 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Session * Class Interactions / Dependencies : * ===========================================================<> */ package com.travelitinerary; class Session { //========================================< Attributes> private boolean isActive; private String sessionID; //========================================< Methods > public boolean isIsActive() { return isActive; }
2 Session
public void setIsActive(boolean isActive) { this.isActive = isActive; } public void startSession(String sessionID) { if (isActive == true) { this.sessionID = sessionID; } } public void endSession() { if (isActive == false) { this.sessionID = ""; } }
29 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Database * Class Interactions / Dependencies : * ===========================================================<> */ package com.travelitinerary; import java.sql.DriverManager; import java.sql.SQLException; /** * * @author Akil */ public class Database { //========================================< Attributes> private boolean isValid; //========================================< Methods > public void validateLogin() throws SQLException, ClassNotFoundException{ //Validate user from the database /* *1. if (user account exist){ *2. isValid == true *3. start session * } *4. else{ *5. Display login error * } */ } public void createNewUser(){ /* *1. validate user input *2. if(user input is correct){ *3. create new account * } * else{ * Return create account failed msg * } */ } public void deleteUserrecord(){ } public void updateUserrecord(){ } public void deleteItinerary(){ } public String[] getFriendList(){ return friendlist; } public void updateItinerary(){} public void updateFriendList(){}
3 Database
30 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * Date 16/12/2011 *===========================================================<> * Class Name : Register_user * Class Interactions / Dependencies : Database * ===========================================================<> */ class Register_user { //========================================< Attributes> private String first_Name = ""; private String last_Name = ""; private String userName = ""; private String userPassword = ""; private String email_Address = ""; //========================================< Methods > public String getFirst_Name() { return first_Name; } public String getLast_Name() { return last_Name; } public String getUserName() { return userName; } public String getUserPassword() { return userPassword; } public String getEmail_Address() { return email_Address; } public void registeUser(String first_Name, String last_Name, String email_Address, String userName, String userPassword) { //------------------------------------------<> this.first_Name = first_Name; this.last_Name = last_Name; this.email_Address = email_Address; this.userName = userName; this.userPassword = userPassword; } public String getUserDetails(){ String strDetails; strDetails = first_Name+','+last_Name+','+ email_Address+','+userName+','+ userPassword; return strDetails; } public void displayMessage(String Msg){ // Display message to user } public void Set_user_details(){ // not used 31 } }
4 Register User
|Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : UserAccount * Class Interactions / Dependencies : Session * ===========================================================<> */ class UserAccount { //========================================< Attributes> private String date_registered = ""; private String first_Name = ""; private String last_Name = ""; private String userName = ""; private String userPassword = ""; private String email_Address = ""; private String accountNumber = ""; private String[] friendlist; //---------------------------------------------public String getDate_registered() { return date_registered; } public void setDate_registered(String date_registered) { this.date_registered = date_registered; } public String getAccountNumber() { return accountNumber; } public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } public String return } public String return } public String return } public String return } public String return } getFirst_Name() { first_Name; getLast_Name() { last_Name; getUserName() { userName; getUserPassword() { userPassword; getEmail_Address() { email_Address;
5 UserAccount User
32 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
public void delete_userAccount(String first_Name, String last_Name, String email_Address, String userName, String userPassword) { //------------------------------------------<> /* 1-userAccount(getusername)Database 2-Database if(isvalid==true) 3-Database(Delete user account) 4-Database(ask for confirmation) 5-Database(delete) */} public String Sen_Email_invitations(Sting email){ /* send an email to register */ } public void logout_User(){ /* 1-displayMessage(confirm logout) if(isConfirmid==true) { UserAccount(end_session)Session } else { /// continue session } */ } public void delete_friends(String username){ friendlist /* 1-userAccount(getusername)Database 2-Database if(isvalid==true) 3-userAccount(Delete user from friendlist) 4-Database(update friendlist) */ } }
33 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
public void edit_userAccount(String first_Name, String last_Name, String email_Address, String userName, String userPassword) { //------------------------------------------<> this.first_Name = first_Name; this.last_Name = last_Name; this.email_Address = email_Address; this.userName = userName; this.userPassword = userPassword; } public String getUserDetails(){ String strDetails; strDetails = first_Name+','+last_Name+','+ email_Address+','+userName+','+ userPassword; return strDetails; } public void displayMessage(String Msg){ // Display message to user } public void Set_user_details(){ // not used } public String[] getFriendlist() { return friendlist; } public void setFriendlist(String[] friendlist) { this.friendlist = friendlist; } public String invitefriends(Sting username){ /* 1-userAccount(getusername)Database 2-Database(1.1.1 isvalid)userAccount 3-userAccount(1.1.2 send_friend_request)Notification */ } public String passwordRecovery(Sting username) { /* 1-userAccount(getusername)Database 2-Database if(isvalid==true) 3-Database(getpassword)userAccount 4-Return (password) 34 | P a g e */ }
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Itinerary * Class Interactions / Dependencies : * ===========================================================<> */ public class Itinerary { //-----------------------------< Attribute > private List itinerary_List = new LinkedList(); private boolean isPrivate = true; private boolean isConfirmedPublished = false; private int itineraryID; //------------------------------< Method > public create_itinerary(){ // create users itinarary List itinerary_List = new List(); } public delete_itinerary(){ // delete uses itinerary delet ( itinerary_List ); displayMessage (itinerary List removed ) } public add_content(){ // Append an element to the list itinerary_List.add( content ); } public delete_content(){ // delete user content // Remove element content inside list boolean b = itinerary_List.remove( content ); // true if (b==true) displayMessage (content removed ) else displayMessage (content not removed ) } public edit_itinerary(){ // add user content // } public view_Shared_Information( ){ if content.isShared == true { displayMessage (content ) } } public display_message(String msg){ showMessage(msg); } public int Get_itineraryID(){ return } public Set_itineraryID(int n ){ itineraryID = int n; } }
6 Itinerary
35 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Note * Class Interactions / Dependencies : Google_Map_Pointer * ===========================================================<> */ public class Google_Map_Pointer { private double latitude_MAP; private double longtitude_MAP; private double zoom; private String pointContent; private String Google_Map_PointID; public String getGoogle_Map_PointID() { return Google_Map_PointID; } public void setGoogle_Map_PointID(String google_Map_PointID) { Google_Map_PointID = google_Map_PointID; } public double getLatitude_MAP() { return latitude_MAP; } public void setLatitude_MAP(double latitude_MAP) { this.latitude_MAP = latitude_MAP; } public double getLongtitude_MAP() { return longtitude_MAP; } public void setLongtitude_MAP(double longtitude_MAP) { this.longtitude_MAP = longtitude_MAP; } public double getZoom() { return zoom; } public void setZoom(double zoom) { this.zoom = zoom; } public String getPointContent() { return pointContent; } public void setPointContent(String pointContent) { this.pointContent = pointContent; } public void Google_Map_Pointerdelete(){
7 Google Map
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Note * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Note { //========================================< Attributes> private boolean isprivate; private String noteID; private String source; private String destination; private String contents; private String itineraryID; //========================================< Methods > public boolean isIsprivate() { return isprivate; . } public void setIsprivate(boolean isprivate) { this.isprivate = isprivate; } public String getNoteID() { return noteID; } public void setNoteID(String noteID) { this.noteID = noteID; } public String getSource() { return source; } public void setSource(String source) { this.source = source; } public String getDestination() { return destination; } public void setDestination(String destination) { this.destination = destination; } public String getContents() { return contents; } public void setContents(String contents) { this.contents = contents; } public void add_notes_toItimerary(String itineraryID,String noteID) { this.itineraryID = itineraryID; this.noteID = noteID; } public void updateNote(){ /* 1-Note(NoteID)Database 2-Note(isValid) Note(edit Note) 3-Note(update_Note)Database */ }
8 Note
37 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
9 Booking
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Booking * Class Interactions / Dependencies : Accommodation, Meetings, Restaurants, Vehicle * ===========================================================<> */ package com.travelitinerary; import java.util.Date; public class Booking { //========================================< Attributes> private Date dateTimeFrom; private Date dateTimeTo; private String locationGSPLatitude; private String locationGSPLongitude; private double currency; //========================================< Methods > public void makeBooking(){ /* *1. check accomodation status *2. Booking(isDepositeRequired)Accommodation *3. */ } public void editBooking(){ } public void deleteBooking(){ } public void setGpsLocation(){ } public String getGpsLocation(){ return locationGSPLatitude+"," +locationGSPLongitude; } 38 | P a g e public void budgetAlert(){ }
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
10
Booking Status
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Booking_Status * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Booking_Status { //========================================< Attributes> private boolean isConfirumed; private boolean isProvisional; //========================================< Methods > public void cancel() { isConfirumed=false; } public boolean isConfirumed() { return isConfirumed; } public void setConfirumed(boolean isConfirumed) { this.isConfirumed = isConfirumed; } public boolean isProvisional() { return isProvisional; } public void setProvisional(boolean isProvisional) { this.isProvisional = isProvisional; } }
39 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Accommodation * Class Interactions / Dependencies : Booking * ===========================================================<> */ package com.travelitinerary; public class Accommodation extends Booking { //========================================< Attributes> private String accommodationName; private boolean isNoneSmoking; private boolean isDepositRequired; private double depositAmount; //========================================< Methods > public void setSmokingStatus(boolean status) { /* *1. set smoking status *2. isNoneSmoking = status */ } public boolean getSmokingStatus() { /* *1. return smoaking status *2. Booking(isNoneSmoking) */ return false; } public void setDepositStatus(boolean deposit) { /* *1. set accommodation deposit *2. isDepositRequired = deposit *3. */ } /** * @param depositAmount the depositAmount to set */ public double getDepositAmount(double depositAmount) { /* *1. return deposit amount *2. Booking(depositAmout) */ return depositAmount; }
11
Accommodation
40 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
12
meetings
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Meetings * Class Interactions / Dependencies : Booking * ===========================================================<> */ package com.travelitinerary; public class Meetings extends Booking{ //========================================< Attributes> private String meetingAgenda; //========================================< Methods > public String getAgenda() { return meetingAgenda; } public void setAgenda(String agenda) { this.meetingAgenda = agenda; } public void deleteMeetingAgenda() { } public void editMeetingAgenda() { }
13
Ship
41 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
14
Restaurants
42 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Flight * Class Interactions / Dependencies : Booking, Transport * ===========================================================<> */ package com.travelitinerary; public class Flight extends Booking implements Transport{ //========================================< Attributes> private String airport; //========================================< Methods > /** * @return the airport */ public String getAirport() { return airport; }
15 Flight
/** * @param airport the airport to set */ public void setAirport(String airport) { this.airport = airport; } }
43 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Train * Class Interactions / Dependencies : Booking, Transport * ===========================================================<> */ package com.travelitinerary; public class Train extends Booking implements Transport{ //========================================< Attributes> private String station; //========================================< Methods > /** * @return the station */ public String getStation() { return station; } /** * @param station the station to set */ public void setStation(String station) { this.station = station; } }
16 Train
44 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * Date 16/12/2011 *===========================================================<> * Class Name : Note * Class Interactions / Dependencies : Vehicle_Rental * ===========================================================<> */ public class Vehicle_Rental { //========================================< Attributes> private String providerName; private double location_GPS_latitude; private double location_GPS_longtitude; private double driver_age; private String driver_residence; private String collect_point; private boolean validate_driving_license; //========================================< Methods > public String getProviderName() { return providerName; } public void setProviderName(String providerName) { this.providerName = providerName; } public double getLocation_GPS_latitude() { return location_GPS_latitude; } public void setLocation_GPS_latitude(double location_GPS_latitude) { this.location_GPS_latitude = location_GPS_latitude; } public double getLocation_GPS_longtitude() { return location_GPS_longtitude; } public void setLocation_GPS_longtitude(double Vehicle location_GPS_longtitude) { this.location_GPS_longtitude = location_GPS_longtitude; Rental } public double getDriver_age() { return driver_age; } public void setDriver_age(double driver_age) { this.driver_age = driver_age; } public String getDriver_residence() { return driver_residence; } public void setDriver_residence(String driver_residence) { this.driver_residence = driver_residence;} public String getCollect_point() { return collect_point; } public void setCollect_point(String collect_point) { this.collect_point = collect_point; } public boolean isValidate_driving_license() { return validate_driving_license; } public void setValidate_driving_license(boolean validate_driving_license) { 45 | P a g e this.validate_driving_license = validate_driving_license;} }
17
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
18
Bike Rental
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : BikeRental * Class Interactions / Dependencies : VehicleRental * ===========================================================<> */ package com.travelitinerary; public class BikeRental extends VehicleRental{ }
46 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : CarRental * Class Interactions / Dependencies : VehicleRental * ===========================================================<> */ package com.travelitinerary; public class CarRental extends VehicleRental{ //========================================< Attributes> private String carGroup; private int numberOfDoors; private int engineSize; }
19
Car Rental
47 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
20
Boat Rental
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu /Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : BoatRental * Class Interactions / Dependencies : VehicleRental * ===========================================================<> */ package com.travelitinerary; /** * * @author Akil */ public class BoatRental extends VehicleRental{ }
48 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Notification * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Notification { //========================================< Attributes> private String notificationID; private String source; private String destination; private String request; private boolean requestresult; //========================================< Methods > public String getNotificationID() { return notificationID; Notification } public void setNotificationID(String notificationID) { this.notificationID = notificationID; } public String getSource() { return source; } public void setSource(String source) { this.source = source; } public String getDestination() { return destination; } public void setDestination(String destination) { this.destination = destination; } public String getrequest() { return request; } public void setrequest(String request) { this.request = request; } public String send_friend_request(){ /* 1-Notification(create request) 2-User_Account(Get Request) */ return request; } public void friend_request_result(boolean result){ requestresult=result; } public String send_Group_invitation(){ 1-Notification(create request) 2-User_Account(Get Request) return request; } public void Group_invitatio_result(boolean result){ requestresult=result; } public String send_itinerary_ownership(){ 1-Notification(create request) 2-User_Account(Get Request)
21
return request; } public void itinerary_ownership_result(boolean result){ requestresult=result; } public String alert(){ 1-Notification(create request) 2-User_Account(Get Request) 49 | P a g e return request;}
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
22
Travel Agent
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Travel_Agent * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Travel_Agent { //========================================< Attributes> private String fax; private String company_name; //========================================< Methods > public String getFax() { return fax; } public void setFax(String fax) { this.fax = fax; } public String getCompany_name() { return company_name; } public void setCompany_name(String company_name) { this.company_name = company_name; } }
50 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Group * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Group { //========================================< Attributes> private String Name; private String groupID; private String admin; private String[][] membersandRole; //========================================< Methods > public String getName() { return Name; } public void setName(String name) { Name = name; } public String getGroupID() { return groupID; } public void setGroupID(String groupID) { this.groupID = groupID; } public String getAdmin() { return admin; } public void setAdmin(String admin) { this.admin = admin; }
23 Group
public String[][] getMembersandRole() { return membersandRole; } public void setMembersandRole(String[][] membersandRole) { this.membersandRole = membersandRole; } 51 | P a g e }
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * Document - Quality - Version Control * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian * --------------------------------------------------------<> Group Board * Date 16/12/2011 *===========================================================<> * Class Name : Group_Board * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Group_Board { //========================================< Attributes> private String entryID; private String entryAuthor; private String entrySubject; private String entryBody; //========================================< Methods > public String getEntryID() { return entryID; } public void setEntryID(String entryID) { this.entryID = entryID; } public String getEntryAuthor() { return entryAuthor; } public void setEntryAuthor(String entryAuthor) { this.entryAuthor = entryAuthor; } public String getEntrySubject() { return entrySubject; } public void setEntrySubject(String entrySubject) { this.entrySubject = entrySubject; } public String getEntryBody() { return entryBody; } public void setEntryBody(String EntryBody) { this.EntryBody = EntryBody; } public void String entrySubject { this.entryBody = entryBody; } public void createEntry(String entryID,String entryAuthor,String entrySubject,String EntryBody){ setEntryID(entryID); setEntryAuthor(entryAuthor); setEntrySubject(entrySubject); setEntryBody(EntryBody); } public void updateEntry(){ 1-Group_Board(entryID)Database 2-Database(isValid) Group_Board(edit entry) 3-Group_Board(update_entry)Database } public void deleteEntry(){ 1-Group_Board(entryID)Database
24 Board
52 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
/*==========================================================<> * Travel Itinerary Planning System 2012 * ---------------------------------------------------------<> * Hallam Internet Systems Ltd * ---------------------------------------------------------<> * Document - Quality - Version Control Group Board * Mr Adrian Ashley Mr. Mohamed Hagras * Mr. Akilu Rilwan Muhammad Mr. Zhao Jian Comments * --------------------------------------------------------<> * Date 16/12/2011 *===========================================================<> * Class Name : Group_Board_Comments * Class Interactions / Dependencies : Database * ===========================================================<> */ public class Group_Board_Comments { //========================================< Attributes> private String commentID; private String commentAuthor; private String commentBody; //========================================< Methods > public String getCommentID() { return commentID; } public void setCommentID(String commentID) { this.commentID = commentID; } public String getCommentAuthor() { return commentAuthor; } public void setCommentAuthor(String commentAuthor) { this.commentAuthor = commentAuthor; } public String getCommentBody() { return commentBody; } public void setCommentBody(String commentBody) { this.commentBody = commentBody; } public void createComment(String CommentID,String CommentBody,String CommentSubject){ setCommentID(CommentID); setCommentBodyCommentBody); setCommentSubject(CommentSubject); } public void updateComment(){ /* 1-Group_Board_Comments(CommentID)Database 2-Group_Board_Comments(isValid) Group_Board(edit Comment) 3-Group_Board(update_Comment)Database */ } public void deleteEntry(){ /* 1-Group_Board_Comments(CommentID)Database 2-Database(isValid) Group_Board_Comments(delete Comment) 53 | 3-Group_Board_Comments(delete Comment)Database */
25
Page
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Risk Monitoring
Adrian Ashley
Mohamed Hagras Mr Akilu Rilwan Muhammad Adrian Ashley Mr. Zhao Jian Mohamed Hagras Adrian Ashley
Communications Administrator
Class Diagram Client Interview new requirements SPECIFICATION REQUIREMENTS Responsibilities overall project tasks sequence and activity Providing staff needs Team Meeting attendance recording Client Interview new requirements Update Project requirements Change management Document standards
UML Maintenance
2/12/11
2/12/11
Maintaining staff training for the project Risk monitoring, Document control
2/12/11
54 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Bibliography
client, i. w., n.d. interview with client. [Online] Available at: https://rcpt.yousendit.com/1287167602/b0eedff4b4c44d4c7543982905cfe740 [Accessed 17 11 2011]. dictionary.reference.com, n.d. http://dictionary.reference.com/browse/noun. [Online] Available at: http://dictionary.reference.com/browse/noun [Accessed 17 11 2011]. IEEE, 2011. mtibugs.com. [Online] Available at: http://mtibugs.com/Howsrs.php [Accessed 09 11 2011]. Manual, A. D. F. C., 2005. Application Development Framework Case Manual. [Online] Available at: http://download.oracle.com/docs/cd/B25016_08/doc/dl/web/B19163_01/adfcase_i ntro.htm [Accessed 20 10 2011]. Mr Dharam Shadija, M. S. L., 2011. Lectures Sheffield Hallam Univerity. [Online] Available at: https://shuspace.shu.ac.uk [Accessed 3 11 2011]. oxforddictionaries.com, n.d. http://oxforddictionaries.com/definition/verb. [Online] Available at: http://oxforddictionaries.com/definition/verb [Accessed 17 11 2011]. simon bennet , John skelton, ken lunn, 2001. UML. s.l.:schaum's outline series. www.freedomscientific.com, 2011. FreedomScientific. [Online] Available at: http://www.freedomscientific.com/products/fs/jaws-productpage.asp [Accessed 20 10 2011].
55 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
Glossary
QC Quality Control RM Risk Management UML Unified Modelling Language GPS Global Positing System
Further Reading
Software Specifications Quality Assurance Plan Configuration Management Plan Risk Management Plan Project Schedule
Project Resources
Rational Rose - For used case diagram
56 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
57 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
58 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
As the project is monitored for project risks, it has been determined that there is a risk of misunderstandings or misinterpretation of any class implementation therefore sequence diagrams were developed .
59 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
60 | P a g e
2012
WEB APPLICATION DESIGN AND MODELLING WADAM
61 | P a g e