|
As a running example, we explain a part of a community description in a simple
CC model. The example community is based on an emergency service
scenario as follows. While an old man is walking in a street, he suddenly falls down.
In order to provide an emergency service to him, an instance of 'EmergencyService'
community is created. This community type consists of five roles; patient, ambulance,
paramedic, medical doctor, and hospital manager. For each role, agents are selected
by the casting condition and the role-membertype mapping condition described in the
SCC model. After the creation of a community instance, all member agents cooperate
to provide the first-aid service to the patient while the patient is transferred to a close
by hospital. When the patient falls down on a street, the patient agent interacts with
ambulance agent and medical doctor's agent. The patient agent calls the nearest
ambulance and requests help for a doctor. At this time, the patient agent should grant
the access to patient's information to doctor and ambulance. After obtaining the
patient's location, the ambulance moves to where the patient is located. At the same
time, a doctor makes a prescription for the emergency patient using patient's health
information, and sends it to the paramedic and the hospital. When ambulance arrives,
the paramedic brings the patient into the ambulance and then provides first-aid
treatment according to the doctor's prescription. Finally, the patient is transferred to
the hospital, and the goal of 'EmergencyService' community instance is achieved.
|