INTRODUCTION
With the advent of computer technology and the internet ,consumers
prefer to conduct their business electronically .These electronic transactions
have to be monitored and carried out efficiently .There is a need to focus on
the need and construction of negotiation protocols for e-commerce and also
provide distance services through negotiation. Reo language can be used to
construct these negotiation protocols as it provides formal semantics, offers
dynamic reconfigurability and composability
In this project, the focus is on the construction of negotiation
protocols using Reo language to demonstrate how it can help in solving the task
of providing care to senior citizens in a minimum amount of time while
maximizing work and utilizing the resources given effectively and how this
system can be implemented using Java RMI and design patterns of Java.
This can be further described as:
Problem Definition:
- There
are N Nurses trying to nurse S senior citizens located at L locations in T
time slots.
- Schedules
will have to be generated so that all Nurses will start the day and end
the day from their location.
- Work
Rule – All nurses will work on fixed regular day time.
- Work
Rule - There is a max number of senior citizens nursed per day
Strategy:
- The
senior citizens all need care at different or maybe at the same time and
make requests for services.
- Nurses
are allotted to provide care for them and one nurse maybe allotted to more
than one patient/senior citizen.
- Some
form of negotiation is needed to ensure that all senior citizens are
attended to and given treatment without any delay using minimum number of
nurses and within a short time span.
Bidding System Technique:
- All
nurses interested in providing services to senior citizens will register
with the bidding system specifying their contact information and their
availability.
- Using
the Bidding system, senior citizens can bid for nurse time.
- Senior
citizens will be required to provide their contact information, type of
care needed and the time they would like the nurse to visit them.
- Senior
citizens need to give their priority number whenever they bid for nurse
time.
- The
priority numbers are stored in a queue.
- The
bid validator checks to see which priority number is highest. The senior
citizen with the highest priority is allocated the first nurse. The next
nurse is allocated to the patient with the second highest priority and so
on. Nurse1 may be allocated to more than one patient since the number of
nurses is limited when compared to the number of patients.
- Once
their request has been carried out the senior citizen’s bid request will
be marked as completed(assigned a nurse) and he can place new bids for
nurse time again.
The Reo Language is modified to provide this kind of
scenario. A circuit detailing the sequence of events and how time slots are allotted
to the senior citizens/patients is done in an effective manner. Reo’s circuit
is so designed that any modifications can be made at run time if required. The
basic idea is to maximize work or services given to senior citizens in a
minimum amount of time using the resources effectively.