Skeleton code
-
Upload
hamoody-goodboy -
Category
Documents
-
view
220 -
download
0
Transcript of Skeleton code
-
8/3/2019 Skeleton code
1/61
Sheffield Hallam UniversityWEB APPLICATION DESIGN AND MODELLING (A-2011/2) WADAM
Software
SKELETON CODE
Version 6 DL 16/12/2011
Web Application
Travel Itinerary Planning System
-
8/3/2019 Skeleton code
2/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
Hallam Internet Systems Ltd
Document Version Control System - Google web docs
Document Management Control - Google web docs
Version Document Authors Student ID Date
v4 Mr Adrian Ashley 12030388 16/12/2011Mr. Mohamed Hagras 21046615 16/12/2011
Mr. Akilu Rilwan Muhammad 20049705 16/12/2011
Mr. Zhao Jian 21040874 16/12/2011
Travel Itinerary Planning SystemProject Plan
CONTENTS
1.0 INTRODUCTION
2 | P a g e
-
8/3/2019 Skeleton code
3/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
1.1 OBJECTIVES Version 2 - 03/12/2011
2.0 CLASS DIAGRAM
3.0 USE CASE DESCRIPTION & SEQUENCE DIAGRAM
4.0 SKELETON CODE DIRECTORY
5.0 RISK MONITORING
5.1 Risk Verification and quality control
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 | P a g e
-
8/3/2019 Skeleton code
4/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning SystemWe at Innovative travel solutions are known for pioneering travel solutions forexample the ability for people to be able to search for flights for any airline on
a single website was first developed by us over 10 years ago.
We have had another brilliant innovation which will help people organise theirtravel itineraries online. This will allow users to share information about theirtravel with their loved ones and friends.
Users should be able to create their itinerary online using our website. They
could add Flight details, train details and hotels information into their itinerary.
This is private information and should be only accessible to that particular user.
The system should allow users to create any number of itineraries. Our system
should allow people visiting our site to become users on our site.Hallam Internet Systems - Team member s established 19/10/2011
Mr Adrian Ashley B.Sc (Hons) Student ID 12030388
Mr. Mohamed Hagras Student ID 21046615
Mr. Akilu Rilwan Muhammad Student ID 20049705
Mr. Zhao Jian Student ID 21040874
1.1 OBJECTIVES Version 2 - 2/12/2011To develop the class diagram of the new system.
Deliverables:
skeleton code
Deliver date : 16/12/2011
2.0 CLASS DIAGRAM
For clarity we have submitted the rational rose original file so that it can be
reviewed
Please see Appendix C, for a larger diagram
4 | P a g e
http://www.google.co.uk/search?hl=en&biw=1680&bih=847&sa=X&ei=VmDrTtGADcnh8AOf7LH1CA&sqi=2&ved=0CCAQvwUoAA&q=skeleton+code&spell=1http://www.google.co.uk/search?hl=en&biw=1680&bih=847&sa=X&ei=VmDrTtGADcnh8AOf7LH1CA&sqi=2&ved=0CCAQvwUoAA&q=skeleton+code&spell=1http://www.google.co.uk/search?hl=en&biw=1680&bih=847&sa=X&ei=VmDrTtGADcnh8AOf7LH1CA&sqi=2&ved=0CCAQvwUoAA&q=skeleton+code&spell=1http://www.google.co.uk/search?hl=en&biw=1680&bih=847&sa=X&ei=VmDrTtGADcnh8AOf7LH1CA&sqi=2&ved=0CCAQvwUoAA&q=skeleton+code&spell=1 -
8/3/2019 Skeleton code
5/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
Figure 1 Class Diagram by Rational Rose (please see the attached file)
3.0 USE CASE DESCRIPTIONS & SEQUENCE DIAGRAM1. Use Case Description: Register
5 | P a g e
-
8/3/2019 Skeleton code
6/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
2. Use Case Description: Login
6 | P a g e
Use Case ID Register RG-01
Primary Actor Non-registered user
Brief Description User selects RegisterSystem prompts for user details
User enters details, checks approve on terms and conditions and submits
System store users details into the database
System displays account created successfully.
Preconditions User is not registered
post conditions User a new registered
Flow of events Actor Input System Response1 Select Register -2 - Prompt for user details3 User enters details -4 - store users details into the database5 - Account created successfully.
Alternates Actor Input System Response4.1 If unable to create account4.2 Display warning message
"User already exists "4.3 Display message
"Please enter new details"
-
8/3/2019 Skeleton code
7/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
2.1 Skeleton Code : Login
3. Use Case Description: Logout
7 | P a g e
Use Case ID Login LIN-01
Primary Actor Registered user: itinerary owner
Brief Description User select loginSystem prompt for user account
User supply login account
System validate user account
System starts users session
System display login success message
User is login successfullyPreconditions User is not logged in
post conditions User is logged in
Flow of events Actor Input System Response1 Select login -2 - Prompt for user account
3 Enter login details- Validate user account- Starts users session- Display login success message
Alternates Actor Input System Response3.1 Display message:
"invalid user account"3.2 Display message
"Please enter account login"
-
8/3/2019 Skeleton code
8/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
i)ii)
8 | P a g e
Use Case ID Logout LT-01
Primary Actor Registered user: itinerary owner
Brief Description User select logoutSystem prompt for logout confirmation
User verify logout selection
System confirms user logout
System display logout success
User is logout successfully
Preconditions User is logged into the system
post conditions User is logged out successfully
Flow of events Actor Input System Response1 Select logout -2 - Prompt for logout confirmation
3 User Confirm4 - Logout user 5 - Display logout success
-
8/3/2019 Skeleton code
9/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
4. Use Case Description: Create travel itinerary.
9 | P a g e
Use Case ID Create travel Itinerary CTI-01Primary Actor Registered user: itinerary owner
Brief Description 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.
Preconditions User logged in
post conditions new travel itinerary
Flow of events Actor Input System Response
1 Select create itinerary2 - Display the itinerary entry form
3 Select privacy level
share with friends
or private
-
4 insert itinerary content
Flight, Hotels, Events
-
5 in each content details6 Select publish itinerary -7 - Confirm publish literary and privacy level8 User Confirm details -9 Update the database10 Publish the itinerary
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
10/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
Create travel itinerary sequence diagram
10 | P a g e
-
8/3/2019 Skeleton code
11/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
5. Use Case Description: Add travel itinerary content.
11 | P a g e
Use Case ID ATIC-01
Primary Actor Registered user: itinerary owner
Brief Description 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.Preconditions User is logged in
post conditions Updated user travel itinerary
Flow of events Actor Input System Response1 Selects the itinerary -
Selects the itinerary entry2 Fill the itinerary contents'
fields
-
3 Select update itinerary -4 - Confirm update itinerary entries5 User Confirm changes -6 - Update the database
7 - Publish the itineraryAlternates Actor Input System Response
-
8/3/2019 Skeleton code
12/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
6. Use Case Description: Edit travel itinerary contents.
7. Use Case Description: Delete travel itinerary.
12 | P a g e
Use Case ID ETIC-01
Primary Actor Registered user: itinerary owner
Brief Description 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.
Preconditions User is logged in
post conditions Updated user travel itinerary
Flow of events Actor Input System Response1 Selects the itinerary -
Selects the itinerary entry2 Select function edit or delete -
3 Select update itinerary -4 - Confirm update itinerary entries5 User Confirm changes -6 - Update the database7 - Publish the itinerary
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
13/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
8. Use Case Description: View friend's itinerary
13 | P a g e
Use Case ID DTI-01
Primary Actor Registered user: itinerary owner
Brief Description User selects delete itineraryUser selects the travel itinerary the user wants to delete
System updates user's travel itineraries database.
Preconditions User is logged in
post conditions Updated user travel itinerary
Flow of events Actor Input System Response1 Selects itinerary -2 Selects delete -3 - Confirm delete itinerary4 User Confirm changes -5 - Delete itinerary
6 - Publish updateAlternates Actor Input System Response
-
8/3/2019 Skeleton code
14/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
9. Use Case Description: Add Friends
14 | P a g e
Use Case ID VFI-01
Primary Actor Registered user: itinerary owner's friend
Brief Description User selects his friend from his friend's list.
User selects the itinerary he wants to view from his friend'sitineraries list.
System views the selected itinerary.
Preconditions User is logged in
post conditions
Flow of events Actor Input System Response1 Selects friend from friends list -2 Load friends available itineraries to
share3 Selects itinerary from
itineraries list4 Load itinerary content for the user
to viewAlternates Actor Input System Response
-
8/3/2019 Skeleton code
15/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
10. Use Case Name: Accept Friend Request.
15 | P a g e
Use Case ID ADD-01
Primary Actor Registered user: itinerary owner
Brief Description User selects find friends.User enters his friend email.
User select add friend.
System sends a friend request to your friend.
If your friend accepts system adds your friend to your friend list.Preconditions User is logged in
post conditions Updated friends
Flow of events Actor Input System Response1 Selects add friends -2 Enter friends email -3 - Search the database
4 add friend -5 - Sends friend request6 Add friend to users friend list
Alternates Actor Input System Response3.1 Display message
"Unable to find your friend"3.2 Redirect to the find friend page
again.
-
8/3/2019 Skeleton code
16/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
11. Use Case Name: Remove Friend.
16 | P a g e
Use Case ID ACCEPT ACC-01
Primary Actor Registered user: itinerary owner
Brief Description User selects friend requests.User selects his friend from the friend requests list.
User selects accept.
System adds his friend into his friends list and him into his friends
friends list.Preconditions User is logged in
post conditions Updated friends list
Flow of events Actor Input System Response1 Selects friend requests -2 Selects specific accept -3 Select accept -
4 adds his friend into his friends listand him into his friends friends list
Alternates Actor Input System Response3.1 User doesn't accept the
friend request.
-
8/3/2019 Skeleton code
17/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
12. Use Case Name: Send Recommendations and notes about
traveling to friends.
17 | P a g e
Use Case ID Remove Friend RF-01
Primary Actor Registered user: itinerary owner
Brief Description Select friend from listSelect remove
Remove friend from list and user from friends list
Preconditions User is logged in
post conditions Updated friends list
Flow of events Actor Input System Response1 Select friend from list -2 Select remove -3 Remove friend from list and user
from friends listAlternates Actor Input System Response
-
8/3/2019 Skeleton code
18/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
13. Use Case Name: Add Recommendations and notes about
traveling to friends.
18 | P a g e
Use Case ID Send Recommendations and notes about traveling to friends.
SRF-01
Primary Actor Registered user: itinerary owner's friend
Brief Description Selects send notesSelects friend from listTypes the note he wants to sendSelects send
Preconditions User is logged in
post conditions
Flow of events Actor Input System Response1 Selects send notes -2 Select friend from list -
3 Types the note he wants tosend
-
4 Selects sendSends the note to user's friend
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
19/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
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
Use Case ID Add Recommendations and notes about traveling from
friends to an itinerary make them public or private. ARN-01
Primary Actor Registered user: itinerary owner
Brief Description Selects view friends notes
Selects add notes to an itinerary.
Selects the itinerary he wants to add the note to.
Selects make the note public or private
Submits.Preconditions User is logged in
post conditions Updated itinerary contents.
Flow of events Actor Input System Response1 Selects view friends notes -2 Selects add notes to an itinerary. -
3 Selects the itinerary he wants toadd the note to.
send
-
4 Selects make the note public or
private
-
5 Submits -Updates user's itinerary
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
20/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
15. Use Case Name: Accept friends invitation to share the
ownership of an itinerary with him.
20 | P a g e
Use Case ID Invite a friend or more to an itinerary so it will be owned by
them too.IAFOM-01
Primary Actor Registered user: itinerary ownerBrief Description Selects invite friends to itinerary.
Selects the itinerary he wants to invite his friends into.
Selects his friends from his friends list.
Submits.Preconditions User is logged in
post conditions Updated itinerary contents.
Flow of events Actor Input System Response1 Selects invite friends to itinerary. -2 Selects the itinerary he wants to
invite his friends into.
-
3 Selects his friends from his
friends list.
-
4 Submits. -Sends an invitation to a friend
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
21/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
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
Use Case ID Accept friends invitation to share the ownership of an
itinerary with him.
AFITS-01Primary Actor Registered user: itinerary owner's friend
Brief Description Selects friends' invitations.
Selects the invitation he wants.
Selects accept.
Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects friends' invitations. -2 Selects the invitation he wants. -3 Selects accept. -
Add the itinerary into his itineraries.
Alternates Actor Input System ResponseReject the invitation.
-
8/3/2019 Skeleton code
22/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
17. Use Case Name: Invite members to the group
22 | P a g e
Use Case ID Create a group with role based so everyone
included inside the group will have different
privileges and make it private or public.CAGWRB-01Primary Actor Registered user: Group Admin
Brief Description Selects Create Group.
Adds group details.
Submits.
Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects Create Group. -2 Adds group details. -
3 Submits. -Creates the group.
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
23/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
18. Use Case Name: Accept group invitation.
23 | P a g e
Use Case ID Invite members to the group.IMTTG-01Primary Actor Registered user: Group Admin
Brief Description Selects the group from his groups list.Selects add members to the group.
Selects members from his friends list.
Submits.Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects the group from his
groups list.
-
2 Selects add members to the
group.
-
3 Selects members from hisfriends list.
-
4 Submits.Sends an invitation to these
members.Alternates Actor Input System Response
-
8/3/2019 Skeleton code
24/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
19. Use Case Name: Set roles to the group members.
24 | P a g e
Use Case ID Accept group invitation.AGI-01
Primary Actor Registered user: Group Member
Brief Description Selects friends' invitations.Selects the invitation he wants.
Selects accept.
Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects friends' invitations. -2 Selects the invitation he wants. -3 Selects accept. -
Add the user into the group.Alternates Actor Input System Response
Reject.
-
8/3/2019 Skeleton code
25/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
20. Use Case Name: Edit a group.
25 | P a g e
Use Case ID Set roles to the group members.SRTTGM-01
Primary Actor Registered user: Group Admin
Brief Description Selects the group from the groups list.Selects Set roles.
Selects a member from group members.
Selects the role he wants to assign to this memberPreconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects the group from the
groups list.
-
2 Selects Set roles. -3 Selects a member from group
members.
-
4 Selects the role he wants toassign to this member
Updates this member's role.Alternates Actor Input System Response
-
8/3/2019 Skeleton code
26/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
21. Use Case Name: Post comments on group's discussion
board.
26 | P a g e
Use Case ID Edit a group.EAG-01Primary Actor Registered user: Group Admin
Brief Description Selects the group from the groups list.Selects edit group.
Edits the details he wants to change.
Submits.Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects the group from the
groups list.
-
2 Selects edit group. -3 Edits the details he wants to
change.
-
4 Submits. -Updates the group details.
Alternates Actor Input System Response
-
8/3/2019 Skeleton code
27/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
4.0 SKELETON CODE DIRECTORYClass Code code check list Java Coded Tested Validation
1 Login x
2 Session x
27 | P a g e
Use Case ID Post comments on group's discussion
board.PCOGD01
Primary Actor Registered user: Group MemberBrief Description Selects the group from the groups list.
Selects post a comment.
Write the comment he wants.
Submits.Preconditions User is logged in
post conditions Updated user's itineraries list.
Flow of events Actor Input System Response1 Selects the group from the
groups list.
-
2 Selects post a comment. -
3 Write the comment he wants. -4 Submits. -
Updates the group details.Alternates Actor Input System Response
-
8/3/2019 Skeleton code
28/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System3 Database X
4 Register User x
5 User Account x
6 Itinerary x
7 Google Map x
8 Notes x
9 Booking x
10 Booking Status x
11 Accommodation x
12 meetings x
13 restaurants x
14 ship x
transport (interface)
15 flight x
16 train x
17 vehicle rental x
18 bike rental x
19 car rental x
20 boat rental x
21 notifications x
22 travel agent x
23 group x
24 group board x
25 group board comment x
28 | P a g e
/*==========================================================* 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 : Login* Class Interactions / Dependencies : Database, Session*
===========================================================*/class Login {
//========================================< Attributes>private String userName = "";
private String userPassword = "";//========================================< Methods >public String getUserName() {
returnuserName;}
publicvoid setUserName(String userName) {this.userName = userName;
}
public String getUserPassword() {returnuserPassword;
}
publicvoid setUserPassword(String userPassword) {this.userPassword = userPassword;
}
publicboolean validateUser(String usrName, Stringpassword ) {
boolean isValid;/*1-Login(1.1 validateLogin)Database2-Database(1.1.1 isvalid)Database3-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
-
8/3/2019 Skeleton code
29/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
29 | P a g e
/*==========================================================* 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>
privatebooleanisActive; private String sessionID;
//========================================< Methods >
publicboolean isIsActive() { returnisActive;
}
publicvoidsetIsActive(boolean isActive) {
this.isActive = isActive;}
publicvoidstartSession(String sessionID) { if (isActive == true) { this.sessionID = sessionID;
}}
publicvoidendSession() { if (isActive == false) { this.sessionID = "";
}}
}
2 Session
-
8/3/2019 Skeleton code
30/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
30 | P a g e
/*==========================================================* 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;/****@authorAkil */publicclass Database { //========================================< Attributes> privatebooleanisValid;
//========================================< Methods >publicvoidvalidateLogin() 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* }*/
} publicvoidcreateNewUser(){
/**1. validate user input*2. if(user input is correct){*3. create new account* }* else{* Return create account failed msg* }*/
}publicvoiddeleteUserrecord(){ }
publicvoidupdateUserrecord(){ } publicvoiddeleteItinerary(){ } public String[] getFriendList(){ return friendlist;
}publicvoidupdateItinerary(){}
publicvoidupdateFriendList(){}
publicvoidupdateRecord(){}public String getRecord(){
return"";}
}
3
-
8/3/2019 Skeleton code
31/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
31 | P a g e
/*==========================================================* 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() {returnfirst_Name;
}public String getLast_Name() {
returnlast_Name;}public String getUserName() {
returnuserName;}public String getUserPassword() {
returnuserPassword;}public String getEmail_Address() {
returnemail_Address;
}publicvoid 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;}
publicvoid displayMessage(String Msg){ // Display message to user
} publicvoid Set_user_details(){ // not used
}}
4 Register
-
8/3/2019 Skeleton code
32/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
32 | P a g e
/*==========================================================* 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() {
returndate_registered;}publicvoid setDate_registered(String date_registered) {
this.date_registered = date_registered;
}public String getAccountNumber() {returnaccountNumber;
}publicvoid setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;}
public String getFirst_Name() {returnfirst_Name;
}public String getLast_Name() {
returnlast_Name;}public String getUserName() {
returnuserName;}public String getUserPassword() {
returnuserPassword;}public String getEmail_Address() {
returnemail_Address;}
5 UserAccount
-
8/3/2019 Skeleton code
33/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
33 | P a g e
publicvoid delete_userAccount(String first_Name,String last_Name,String email_Address,String userName,String userPassword) {
//------------------------------------------/*
1-userAccount(getusername)Database2-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*/
}
publicvoid logout_User(){/*1-displayMessage(confirm logout)if(isConfirmid==true) {UserAccount(end_session)Session
} else {/// continue session
} */}publicvoid delete_friends(String username){
friendlist/*1-userAccount(getusername)Database2-Database if(isvalid==true)3-userAccount(Delete user from friendlist)4-Database(update friendlist)*/
}}
-
8/3/2019 Skeleton code
34/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
34 | P a g e
publicvoid 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;
} publicvoid displayMessage(String Msg){ // Display message to user
}
publicvoid Set_user_details(){ // not used}public String[] getFriendlist() {
returnfriendlist;
}publicvoid setFriendlist(String[] friendlist) {
this.friendlist = friendlist;}public String invitefriends(Sting username){
/*1-userAccount(getusername)Database2-Database(1.1.1 isvalid)userAccount3-userAccount(1.1.2 send_friend_request)Notification*/
}public String passwordRecovery(Sting username){
/*1-userAccount(getusername)Database2-Database if(isvalid==true)3-Database(getpassword)userAccount4-Return (password)*/
}
-
8/3/2019 Skeleton code
35/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
35 | P a g e
/*==========================================================* 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 :* =========================================================== */publicclass Itinerary { //-----------------------------< Attribute > private List itinerary_List = new LinkedList();
privatebooleanisPrivate = true; privatebooleanisConfirmedPublished = false;
private
int
itineraryID;//------------------------------< Method > public create_itinerary(){ // create users itinarary
List itinerary_List = new List();}
public delete_itinerary(){ // delete uses itinerarydelet ( 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 listboolean b = itinerary_List.remove( content ); // true
if (b==true)displayMessage (content removed )
elsedisplayMessage (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);}
publicint Get_itineraryID(){ return
} public Set_itineraryID(int n ){
itineraryID = int n;}
}
6 Itinerary
-
8/3/2019 Skeleton code
36/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
36 | P a g e
/*==========================================================* 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* =========================================================== */
publicclass Google_Map_Pointer {privatedoublelatitude_MAP;privatedoublelongtitude_MAP;privatedoublezoom;private String pointContent;private String Google_Map_PointID;public String getGoogle_Map_PointID() {
returnGoogle_Map_PointID;}publicvoidsetGoogle_Map_PointID(String google_Map_PointID) {
Google_Map_PointID = google_Map_PointID;}publicdouble getLatitude_MAP() {
returnlatitude_MAP;}publicvoidsetLatitude_MAP(double latitude_MAP) {
this.latitude_MAP = latitude_MAP;}publicdouble getLongtitude_MAP() {
returnlongtitude_MAP;}publicvoidsetLongtitude_MAP(double longtitude_MAP) {
this.longtitude_MAP = longtitude_MAP;}publicdouble getZoom() {
returnzoom;}publicvoidsetZoom(double zoom) {
this.zoom = zoom;}public String getPointContent() {
returnpointContent;}publicvoidsetPointContent(String pointContent) {
this.pointContent = pointContent;}
publicvoidGoogle_Map_Pointerdelete(){/*1-Google_Map_Pointer(Google_Map_PointID)Database2-Database(isValid)Google_Map_Pointer(delete Google_Map_Pointer)3-Google_Map_Pointer(delete
Google_Map_Pointer)Database*/
}
7 Google Map
-
8/3/2019 Skeleton code
37/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
37 | P a g e
/*==========================================================* 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* =========================================================== */publicclass Note {
//========================================< Attributes>privatebooleanisprivate;private String noteID;private String source;private String destination;private String contents;private String itineraryID;//========================================< Methods >publicboolean isIsprivate() {
returnisprivate; . }publicvoidsetIsprivate(boolean isprivate) {
this.isprivate = isprivate;
}public String getNoteID() {
returnnoteID;}publicvoidsetNoteID(String noteID) {
this.noteID = noteID; }public String getSource() {
returnsource; }publicvoidsetSource(String source) {
this.source = source; }public String getDestination() {
returndestination; }publicvoidsetDestination(String destination) {
this.destination = destination; }public
String getContents() {returncontents; }publicvoidsetContents(String contents) {
this.contents = contents; }publicvoidadd_notes_toItimerary(String
itineraryID,String noteID) {this.itineraryID = itineraryID;
this.noteID = noteID;}publicvoidupdateNote(){
/*1-Note(NoteID)Database2-Note(isValid)Note(edit Note)3-Note(update_Note)Database
*/ }publicvoiddeleteNote(){
/*1-Note(NoteID)Database2-Database(isValid)Note(delete Note)3-Note(delete Note)Database*/ }
8 Note
-
8/3/2019 Skeleton code
38/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
38 | P a g e
/*==========================================================
* 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;
publicclass Booking { //========================================< Attributes> private Date dateTimeFrom; private Date dateTimeTo; private String locationGSPLatitude; private String locationGSPLongitude;
privatedoublecurrency;//========================================< Methods >
publicvoidmakeBooking(){ /*
*1. check accomodation status*2. Booking(isDepositeRequired)Accommodation*3.*/
} publicvoideditBooking(){
} publicvoiddeleteBooking(){
} publicvoidsetGpsLocation(){}
public String getGpsLocation(){ returnlocationGSPLatitude+"," +locationGSPLongitude;
} publicvoidbudgetAlert(){
}}
9 Booking
-
8/3/2019 Skeleton code
39/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
39 | P a g e
/*==========================================================
* 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* ===========================================================
*/publicclass Booking_Status {//========================================< Attributes>
privatebooleanisConfirumed;privatebooleanisProvisional;//========================================< Methods >
publicvoidcancel() {isConfirumed=false;
}publicboolean isConfirumed() {
returnisConfirumed;}
publicvoidsetConfirumed(boolean isConfirumed) {this.isConfirumed = isConfirumed;}
publicboolean isProvisional() {returnisProvisional;
}
publicvoidsetProvisional(boolean isProvisional) {this.isProvisional = isProvisional;
}}
10 Booking Status
-
8/3/2019 Skeleton code
40/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
40 | P a g e
/*==========================================================* 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;publicclass Accommodation extends Booking { //========================================< Attributes> private String accommodationName; privatebooleanisNoneSmoking; privatebooleanisDepositRequired;
privatedoubledepositAmount; //========================================< Methods > publicvoidsetSmokingStatus(boolean status) { /*
*1. set smoking status*2. isNoneSmoking = status*/
}
publicboolean getSmokingStatus() { /*
*1. return smoaking status*2. Booking(isNoneSmoking)
*/ returnfalse;}
publicvoidsetDepositStatus(boolean deposit) { /*
*1. set accommodation deposit*2. isDepositRequired = deposit*3.*/
} /** *@paramdepositAmountthedepositAmounttoset */ publicdouble getDepositAmount(double depositAmount) { /*
*1. return deposit amount*2. Booking(depositAmout)*/
return depositAmount;}
}
11Accommodation
-
8/3/2019 Skeleton code
41/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
41 | P a g e
/*==========================================================* 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;
publicclass Meetings extends Booking{ //========================================< Attributes>
private String meetingAgenda;
//========================================< Methods > public String getAgenda() { returnmeetingAgenda;
}
publicvoidsetAgenda(String agenda) { this.meetingAgenda = agenda;
}
publicvoiddeleteMeetingAgenda() {}
publicvoideditMeetingAgenda() {
}
12meetin s
13Shi
-
8/3/2019 Skeleton code
42/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
42 | P a g e
/*==========================================================* 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 : Ship* Class Interactions / Dependencies : Booking, Transport* ===========================================================
*/package com.travelitinerary;
publicclass Ship extends Booking implements Transport { //========================================< Attributes>
privateintcabinNumber; private String seaport;
//========================================< Methods >
publicint getCabinNumber() { returncabinNumber;
}
publicvoidsetCabinNumber(int cabinNumber) { this.cabinNumber = cabinNumber;
}
public String getSeaport() { returnseaport;
}
publicvoidsetSeaport(String seaport) { this.seaport = seaport;
}}
/*==========================================================* 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 : Restaurants* Class Interactions / Dependencies : Booking* ===========================================================
*/package com.travelitinerary;
/****@authorAkil*/
publicclass Restaurants extends Booking{
//========================================< Attributes>
private String name; privatebooleansmoking; private String kosherHalal;}
14 Restaurants
-
8/3/2019 Skeleton code
43/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
43 | P a g e
/*==========================================================* 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;
publicclass Flight extends Booking implements Transport{
//========================================< Attributes> private String airport;
//========================================< Methods >
/** *@returntheairport */ public String getAirport() { returnairport;
}
/**
*@paramairporttheairporttoset */ publicvoidsetAirport(String airport) { this.airport = airport;
}}
15 Flight
-
8/3/2019 Skeleton code
44/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
44 | P a g e
/*==========================================================* 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;
publicclass Train extends Booking implements Transport{ //========================================< Attributes> private String station;
//========================================< Methods >
/** *@returnthestation */ public String getStation() { returnstation;
}
/**
*@paramstationthestationtoset */ publicvoidsetStation(String station) { this.station = station;
}}
16 Train
-
8/3/2019 Skeleton code
45/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
45 | P a g e
/*==========================================================* 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* ===========================================================*/
publicclass Vehicle_Rental {//========================================< Attributes>
private String providerName;privatedoublelocation_GPS_latitude;privatedoublelocation_GPS_longtitude;privatedoubledriver_age;private String driver_residence;private String collect_point;privatebooleanvalidate_driving_license;//========================================< Methods >
public String getProviderName() {returnproviderName; }
publicvoidsetProviderName(String providerName) {this.providerName = providerName; }
publicdouble getLocation_GPS_latitude() {returnlocation_GPS_latitude; }
publicvoidsetLocation_GPS_latitude(doublelocation_GPS_latitude) {
this.location_GPS_latitude = location_GPS_latitude;}
publicdouble getLocation_GPS_longtitude() {returnlocation_GPS_longtitude; }
publicvoidsetLocation_GPS_longtitude(doublelocation_GPS_longtitude) {
this.location_GPS_longtitude = location_GPS_longtitude;}
publicdouble getDriver_age() {returndriver_age; }
publicvoidsetDriver_age(double driver_age) {this.driver_age = driver_age; }
public String getDriver_residence() {returndriver_residence; }
publicvoidsetDriver_residence(String driver_residence) {this.driver_residence = driver_residence;}
public String getCollect_point() {returncollect_point; }
publicvoidsetCollect_point(String collect_point) {this.collect_point = collect_point; }
publicboolean isValidate_driving_license() {returnvalidate_driving_license; }
publicvoidsetValidate_driving_license(booleanvalidate_driving_license) {
this.validate_driving_license = validate_driving_license;}}
17 Vehicle
-
8/3/2019 Skeleton code
46/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
46 | P a g e
/*==========================================================* 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;
publicclass BikeRental extends VehicleRental{
}
18 Bike Rental
-
8/3/2019 Skeleton code
47/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
47 | P a g e
/*==========================================================* 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;
publicclass CarRental extends VehicleRental{
//========================================< Attributes> private String carGroup; privateintnumberOfDoors; privateintengineSize;}
19 Car Rental
-
8/3/2019 Skeleton code
48/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
48 | P a g e
/*==========================================================* 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;
/***
*@authorAkil*/publicclass BoatRental extends VehicleRental{}
20 Boat Rental
-
8/3/2019 Skeleton code
49/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
49 | P a g e
/*==========================================================* 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
* =========================================================== */publicclass Notification {
//========================================< Attributes>private String notificationID;private String source;private String destination;private String request;privatebooleanrequestresult;//========================================< Methods >public String getNotificationID() {
returnnotificationID;}publicvoidsetNotificationID(String notificationID) {
this.notificationID = notificationID;}
public String getSource() {returnsource; }
publicvoidsetSource(String source) {this.source = source; }
public String getDestination() {returndestination; }
publicvoidsetDestination(String destination) {this.destination = destination; }
public String getrequest() {returnrequest; }
publicvoidsetrequest(String request) {this.request = request; }
public String send_friend_request(){/*
1-Notification(create request)2-User_Account(Get Request)*/returnrequest; }
publicvoidfriend_request_result(boolean result){requestresult=result; }
public String send_Group_invitation(){1-Notification(create request)2-User_Account(Get Request)returnrequest; }
publicvoidGroup_invitatio_result(boolean result){requestresult=result; }
public String send_itinerary_ownership(){1-Notification(create request)2-User_Account(Get Request)
returnrequest; }publicvoiditinerary_ownership_result(boolean result){
requestresult=result; }public String alert(){
1-Notification(create request)2-User_Account(Get Request)
returnrequest;}
21 Notification
-
8/3/2019 Skeleton code
50/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
50 | P a g e
/*==========================================================* 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* ===========================================================
*/publicclass Travel_Agent {
//========================================< Attributes>private String fax;private String company_name;//========================================< Methods >
public String getFax() {returnfax;
}publicvoidsetFax(String fax) {
this.fax = fax;}
public String getCompany_name() {returncompany_name;
}publicvoidsetCompany_name(String company_name) {
this.company_name = company_name;}
}
22 Travel Agent
-
8/3/2019 Skeleton code
51/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
51 | P a g e
/*==========================================================* 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* ===========================================================
*/publicclass Group {
//========================================< Attributes>private String Name;private String groupID;private String admin;private String[][] membersandRole;//========================================< Methods >
public String getName() {returnName;
}publicvoidsetName(String name) {
Name = name;}
public String getGroupID() {returngroupID;
}publicvoidsetGroupID(String groupID) {
this.groupID = groupID;}
public String getAdmin() {returnadmin;
}publicvoidsetAdmin(String admin) {
this.admin = admin;}
public String[][] getMembersandRole() {returnmembersandRole;
}publicvoidsetMembersandRole(String[][] membersandRole) {
this.membersandRole = membersandRole;}
}
23 Group
-
8/3/2019 Skeleton code
52/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
52 | P a g e
/*==========================================================* 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_Board* Class Interactions / Dependencies : Database* =========================================================== */
publicclass Group_Board {//========================================< Attributes>private String entryID;private String entryAuthor;private String entrySubject;private String entryBody;//========================================< Methods >public String getEntryID() {
returnentryID; }publicvoidsetEntryID(String entryID) {
this.entryID = entryID; }public String getEntryAuthor() {
returnentryAuthor; }publicvoidsetEntryAuthor(String entryAuthor) {
this.entryAuthor = entryAuthor;}public String getEntrySubject() {
returnentrySubject; }publicvoidsetEntrySubject(String entrySubject) {
this.entrySubject = entrySubject; }public String getEntryBody() {
returnentryBody; }publicvoidsetEntryBody(String EntryBody) {
this.EntryBody = EntryBody; }publicvoidString entrySubject {
this.entryBody = entryBody;}publicvoidcreateEntry(String entryID,String entryAuthor,String
entrySubject,String EntryBody){setEntryID(entryID);setEntryAuthor(entryAuthor);setEntrySubject(entrySubject);setEntryBody(EntryBody);}
publicvoidupdateEntry(){1-Group_Board(entryID)Database2-Database(isValid)
Group_Board(edit entry)3-Group_Board(update_entry)Database}
publicvoiddeleteEntry(){1-Group_Board(entryID)Database
2-Database(isValid)Group_Board(delete entry)3-Group_Board(delete entry)Database
}
24Group Board
-
8/3/2019 Skeleton code
53/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
53 | P a g e
/*==========================================================* 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_Board_Comments* Class Interactions / Dependencies : Database* =========================================================== */
publicclass Group_Board_Comments {//========================================< Attributes>private String commentID;private String commentAuthor;private String commentBody;//========================================< Methods >public String getCommentID() {
returncommentID;
}publicvoidsetCommentID(String commentID) {
this.commentID = commentID;}public String getCommentAuthor() {
returncommentAuthor;}publicvoidsetCommentAuthor(String commentAuthor) {
this.commentAuthor = commentAuthor;}public String getCommentBody() {
returncommentBody;}publicvoidsetCommentBody(String commentBody) {
this.commentBody = commentBody;}publicvoidcreateComment(String CommentID,String
CommentBody,String CommentSubject){setCommentID(CommentID);setCommentBodyCommentBody);setCommentSubject(CommentSubject);}
publicvoidupdateComment(){/*1-Group_Board_Comments(CommentID)Database2-Group_Board_Comments(isValid)Group_Board(edit Comment)3-Group_Board(update_Comment)Database*/
}publicvoiddeleteEntry(){
/*1-Group_Board_Comments(CommentID)Database2-Database(isValid)Group_Board_Comments(delete Comment)3-Group_Board_Comments(delete Comment)Database*/
}
25Group Board
-
8/3/2019 Skeleton code
54/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
5.0 RISK MANAGEMENT Version 2 - 2/12/2011According to the project plan v17, the Risk management is in full operation for the project and
adhered to. the present object is to submit a class diagram,
TABLE 3, Risk of Organisational Roles
Responsibility Risk Monitoring Journal
UpdateMohamed Hagras
Mr Akilu Rilwan
Muhammad
Mr. Zhao Jian
Adrian Ashley
Project Manager Class Diagram
Client Interview new
requirements
SPECIFICATION REQUIREMENTS
Responsibilities overall project
tasks sequence and activity
Providing staff needs
Team Meeting attendancerecording
2/12/11
Mohamed
Hagras
Mr Akilu Rilwan
Muhammad
Communications
Administrator
Client Interview new
requirements
Update Project requirements
Change management
2/12/11
Adrian Ashley
Mr. Zhao Jian
Documentations
& Backup
Administrator
Document standardsUML Maintenance
2/12/11
Mohamed
Hagras
Adrian Ashley
Staff Training
Administrator
Maintaining staff training for the
project
Risk monitoring,
Document control
2/12/11
4.1 Risk Verification and quality control
The clarification has reduced the risk to the project, the request and response islisted below
54 | P a g e
-
8/3/2019 Skeleton code
55/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System[Tracking ID QC CLASS DIAGRAM - ]
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-product-
page.asp[Accessed 20 10 2011].
55 | P a g e
-
8/3/2019 Skeleton code
56/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
GlossaryQC 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
-
8/3/2019 Skeleton code
57/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
APPENDIX A Project Management
Ref3.The Spiral Model diagram from (Boehm 1987)
57 | P a g e
-
8/3/2019 Skeleton code
58/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning Systemhttp://www.ics.uci.edu/~wscacchi/Papers/SE-Encyc/Process-Models-SE-Encyc.pdf
APPENDIX B QUALITY CONTROL
Figure 1 Class diagram by Rational Rose ( Please see the attached See rational )
58 | P a g e
Hand in
assignmen
APPENDIX C Extended Class diagram
-
8/3/2019 Skeleton code
59/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
APPENDIX ERisk Management Class diagram
Risk Management RM 02 - Class Diagrams
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
-
8/3/2019 Skeleton code
60/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System
APPENDIX F Google Map Investigation Map API
Test Google map for location to help develop the class diagram
APPENDIX G Google Map Investigation Map API
Test Google map for location to help develop the class diagram
60 | P a g e
-
8/3/2019 Skeleton code
61/61
WEB APPLICATION DESIGN AND MODELLING
WADAM
2012
Travel Itinerary Planning System