The customer
class is in the major classes that have the name of the customer, the permanent
or current address of the customer as well as the contact number. It is
important because the customer is the entity that will place or receive the
courier services. So that’s why the system needs to be stored the basic
information of the customer for the better experience of the customer. The
first reason is to save the information of the customer that the company can send
the package to the exact person on the exact address. The customer is
associated with three classes having the name of the classes like
CustomerAccount, PickupRequest as well as Package. The association of Customer
class with CustomerAccount is one to one, with PickupRequest is one to one
while the relationship of Customer class with the Package class is one to many.
Payment of On the Spot
Courier Services
The payment
class has three attributes with the name datePaid, amountPaid, as well as type.
The attributes or variable takes and store the information to the database of
the exact date of payment of the package, the total amount as well as the type
of the payment such as by cash / hand or online payment. The Payment class has
the direct relation with CustomerAccount class which is the child class of the
Payment. The relation between these two classes is many to one.
CustomerAccount of On the
Spot Courier Services
Customer
Account is the class that is a child class of Payment class having one to many
relationship the with Payment class. The class has three different types of attributes
such as balance, dateBilled as well as amountBilled. Balance has the data type is
float that show the balance in the real numbers, the data type of dateBilled is
timetext in database and the string in the programming as well as the data type
of amountBilled is also in the float to show the real number to professionals
and the customers. CustomerAccount class is also directly attached to Cutomer
class with the one to one relationship.
Employee of On the Spot
Courier Services
Another class having
name Employee is also highlighted here which has three variable such as name,
address as well as phone. The name variable will take the name of the employee.
The complete address or the current address is saved in address as well as in
the phone, employee phone or contact number will be placed. It has direct link
with two classes at the same time as well as has the similar relations with
both of them (one to many). The linked classes names are RouteTrip and the
MovementEvent.
Package of On the Spot
Courier Services
The Package
class is about delivery item which is going to be delivered by the company. The
class holds the basic essential information of the delivery package which has
five variables. The variables exist in this class are deliverToName, deliverToAddress,
weight, cost as well as DTDelevered. The Package class is only that has four direct
relationships with the classes such as Customer, RouteTrip, PickupRequest as
well as MovementEvent. The relation with RouteTrip is one to many, with
Customer is many to one, with PickupRequest is many to one as well as with
MovementEvent is one to many.
Complete Domain Model Classes of
On the Spot Courier Services
Five Tables to Domain Model Classes
The five tables to domain model
classes are as follows:
·
Customer
·
Package
·
Account
·
Employee
·
Request
Customer of On the Spot
Courier Services
The table
customer is important in the database that will hold the information of all the
customers. The main tuples in the customer table are: id, name, address as well
as contact. The attributer “id” is a primary key in the customer table with the
null property. The data type of id is integer that will take 10 integers for
each record and it will be unique. The name attribute has the varchar data type
that will have the space in the database is around 180 character. The address
of the customer is in the Text format as well as the phone number is also in
the varchar format. The attribute id will become the foreign key within the
package table because id is used to make the one to many relationships with the
package table.
Package of On the Spot
Courier Services
The package is
also have an id, package name, address where it is going to deliver, weight of
this package, cost as well as the status whether it is delivered or not. Furthermore,
one extra tuple is also included in the table that is a foreign key coming from
the Customer table. After having the foreign key, the table will has a many to
one relationship with the Customer table. The foreign key will automatically
seed as well as retrieve the data. In the perspectives of the foreign key, it
can easily retrieve the customer data against the courier or the package.
Account of On the Spot Courier Services
The table
account will have the id, a foreign key of Customer table with the name
customer_id, another foreign key of table package with the name of pack_id,
dateBilled, amountBilled, type as well as the amountPaid. The for foreign key
of the customer table will bring the data of the customer against the package
as well as the other foreign key will bring the data from the Package table
without consuming any kind of additional memory of the database. The table will
show the package information such as the charges of the package, owner of the
package, the whole information of customer as well as the complete information
of the package.
Employee of On the Spot Courier Services
Employee table has
an id, the name of employee in varchar format, the address and contact. The id
will also become the foreign key in the customer table because every customer will
have a field to store the information of employee in the company’s database
records. The customer id is also a foreign key in the table because it the
employee will also have the key information about the customer and the package
for just to make sure the package is delivered to the correct person as well as
at the correct address.
Request of On the Spot
Courier Services
The table will have an id,
foreign key of the customer, foreign key of the package, request as well as the
locationAddress. The request attribute tells that customers is requesting for
having the courier service of the company to send the package from one place to
another. The request table will also have all information of each request as
well as every customer and package against each request.
Use Case Diagram
Package Diagram
Deployment Architecture of
On the Spot Courier Services
In the high
availability, the system that is developed with the name of the “on the spot
courier services”, should be highly available to every employee, customers who
will request for the service here as well as other the courier staff company. The
system is highly available for helping to make sure the predictable degree of
operational continuity at the time of the development hours. A comparative the emailing service is also
available for the customers to ask the service as well as place the request for
getting courier services. The will be critical in the backend perspectives as
well as the architectural. The best ever example of the critical system is the
email service of Microsoft Exchange for conduction of the business.
The architecture of the systems
is designed to keep the complex application online that need the assurance in
the sense of the system capacity will be increased. The system is giving you assured
that the performance of this application will be increased after the implementation
of the system such as the launching the software as well as implementing the
hardware architecture.
For Deployment, the Ubuntu Linux
based server or domain is chosen for this system. The domain will make the
system or application available for every customer and employee as well as
every member of the company or the business. The system is efficient, reliable,
as well as effective that has the high level performance to fulfil the
requirement of the client. In case of the any kind of slump or error in the
system application, it will be maintained timely as soon as possible on very
immediate basis because the main thing is to make available every time for everyone.
The applications of employee and
customers will show the data of the courier related requests as well as the
offers. Customer will send the request to the company to have the service of
the company to send an item to other place. The customer can also send email
for requesting and complaining. The application code is generated by the system
to the users. The system will read the request that is placed in the database. In
the message queue, some tasks for the employee exist against the distinguished
applications.