Beruflich Dokumente
Kultur Dokumente
Page | i
Table of Contents
Platform Overview ........................................................................................................................................ 1
a.
b. ............................................................................................................................................................... 1
System Designs for Desktop Application ...................................................................................................... 3
a)
b)
c)
d)
References .................................................................................................................................................... 8
Page | ii
Platform Overview
a. Why Java?
Java was chosen as the preferred language for the application build that Wheelies LTD requires are
based on the following points:
Java is a standardized Platform Specifications for java is are available from several
resources. These resources include books, online information and tutorials developing in
Java.
Java is a Mature Technology The Java Technology has been around for some time and has
been tested and deployed within a number of industries. In terms of implementation as well
as APIs Java is well developed in these areas. Therefore there are less risk for a buggy
platform which may possess security risks, or that it contains flaws in its architecture.
Write-Once-Run-Anywhere this allows for the coding that was done for the current
application can be used in future versions of the products, thereby creating a simpler
process for upgrading your product
Developer Productivity The Java programming language contains well-defined syntax.
Developers are able to write complex logic in it and are able to add their own improvements
or customization if needed.
Java is Object Oriented Because java is Object-oriented it provides great flexibility,
modularity, clarity, and reusability through encapsulation, inheritance, and polymorphism.
Java supports multi-threading threads are native in the Java platform. With multithreaded
programs two or more parts that can run concurrently.
b.
Java supports distributed computing which comprises for several computers working together in a
network. Java is designed to make this type of computing easy as Networking capability is integrated
in Java, this will be useful for Wheelies as they can use the software on multiple computers
connected to their network as in the at the front desk for walk in customer and another one for call
in customers which ever suits their needs using Java as the development language is capable to
accommodate. To run a java program an interpreter is required. Java programs are compiled into
the Java Virtual Machine code called bytecode. The bytecode is machine-independent and can run
on any machine that has a Java interpreter. Whereas other compilers, translate programs in a highlevel language to machine code resulting in that code only being able to run on the native machine.
If you run the program on other machines, it has to be recompiled on that native machine. example,
if you compile a program written in another programming language in Windows, the executable
code generated by the compiler can only run on the Windows platform. With Java, you only need to
compile the source code one time, and the bytecode generated by the compiler can run on any
platform (Operating System) with has the Java interpreter. The Java interpreter translates the
Page | 1
bytecode into the machine language of the target machine. This feature as perfect for wheelies as it
will not restrict the company to operate in a closed environment but they are able to have a
heterogeneous environment with a mixture of different operating system if they so desire.
Page | 2
1.. *
v
CAR
-pickdate:date
-returndate:date
-pickuploc:string
-vehiclelass:string
-plateno:string
-carname:string
-cartype:string
-carcolour:string
-rent: double
-add()
-modify()
-reserve()
-reserve()
+search()
1.. *
Ma
k
1.. *
es
1.. *
PAYMENT
RETURN
Add
Makes
1.. *
1.. *
1.. *
REGISTERATION
MANGER/STAFF
1.. *
1.. *
+id:int
-retdate:date
-id:int
-amount:double
-custName:string
#register()
#login()
-reservation()
Makes
CUSTOMER
+userId:string
-custName:string
-custAdd:string
-custAge:string
-custMoble:int
-custEmail:string
Process
+sid:int
-sname:string
-sposition:string
-printinvoice:string
-update()
-modifinginginfo()
-printinvoice()
#pay()
-confirm()
1.. 2
ad
ds
1
EARLY RETURN
-id:int
LATE RETURN
MANGER/ADMIN
-id:int
-latecharge:double
-id:int
-name:string
#password:
View
1..*
-confirm()
#pay()
-confirm()
-add()
-modify()
-view()
REPORTS
-id:int
-startdate:date
-enddate:date
-cartype:string
-sales:string
-amtavaiable:string
-amtrented-string
-generate()
-print()
-save()
Page | 3
b) Use Case
Car Rental Use Case
View & Print
Invoices
Register as member
<<include>>
ds>>
<<exten
Pick up car
Process Rental
View & Edit
bookings
<< e
Return care <<
xte
ex
nds
ten
>>
ds
>>
View available
cars, times & dates
Late Return
Cancel Booking
Staff
Early Return
<<extends>>
Customer
View Invoices
View reports by
Vehicles
Admin
Page | 4
Confirm
availability of
u
requested vehicle
ncl
<<I
Process Rental
>>
de
chooses Return
Location
ud
ncl
<< I
e>>
Print Invoice
>
lude>
<<Inc
Manager
Makes Payment
Cancel Bookings
Page | 5
The user provides some criteria and the system displays the available information that fits the given
criteria.
Actors
To find a particular vehicle to rent on a certain date and time. To access further functions e.g. Edit,
delete, print invoices and view reports, etc.
System Goals
To facilitate the user in a specific car to rent on the accommodated time and day.
References
UC 02
Main Scenario
User
1. The user searches for a vehicle to rent
System
2. The system request search criteria such as
vehicle class type, date & time of
availability to pick up and return and
location pick up.
Page | 6
System
2. The system out puts wrong information
based on the users criteria.
Alternative Scenario 2
User
1. The user enters information to book a
vehicle and submits and confirms.
Alternative Scenario 3
User
1. The user enters criteria for vehicle and
submits search.
System
2. The system confirms booking an crashes
without really saving the users
information.
System
2. The system out puts no information
Page | 7
References
http://weblogs.java.net/blog/mlam/archive/2007/04/why_choose_java.html
http://www.cs.armstrong.edu/liang/intro6e/JavaCharacteristics.pdf
Page | 8