The Admin agent is responsible for the administration of the multi agent system by invoking and
terminating other agents based on the requirement of specific functionalities by the user or doctor. It
receives incident reports like database errors, unexecuted plans, security notifications and informs control
Caretaker
Scheduler
Agent
Main Server
Admin
Agent
Doctor
Query Agent
Database
Data
Agent
Sensors Sensors
Sensors
Patient
Sink
Control
Agent
1. Register the SL0 content language
2. Register the mobility ontology
3. Initialize Admin GUI
4. Get the list of available locations and show it in
a. GUI using the GetAvailableLocationsBehaviour(this);
5. Initialize the counter and the flag
6. Add agent behaviors to increment the counter and serve incoming messages
7. Invoke the beforeMove() method for initializing agent behaviors before
moving to next platform
8. Invoke the afterMove() method for initializing agent behaviors in the new
platform
9. Check if the migration is via RMA the variable netSite can be null migrate.
10. Get the list of available locations from the AMS and clone agent as given
below: CLONE_EVENT:
a. Iterator cloneParameters = ev.getAllParameter();
b. nextSite = (Location)cloneParameters.next();
c. doClone(nextSite,"clone"+cnt+"of"+getName());
break();
68 V.Vaidehi et al. / Procedia Computer Science 19 ( 2013 ) 64 – 71
agents regarding those incidents according to their priority levels. The function of the admin agent plays
an important role in the system. Since it is responsible for coordinating all the other agents, this forms
main agent in the proposed multi-agent system.
The functionality of the admin agent is presented in the form of pseudo code in Fig 2. Agents use a
different language for communication with other agents and they have an encoding mechanism for the
messages that are transmitted. The first step is to initialize the content language for the agents using the
register SL0. The content language specification includes the specification for the encryption and the
language that is used. In a multi agent system, this is important so that the agents can be in a common
communication mode. The admin agent needs to be mobile in order to gather data from various agents in
different systems. So there is a need to specify the mobility mechanism for the admin agent. The mobility
functionality helps the agents to be created in the system from where the request for that functionality has
raised. This can be stated as the key role of the admin agent. Thus, the need for the presence of the agent
program in each system is eliminated. Then, the UI for the agents is used and the available locations are
listed. The agent is capable of responding the incoming messages with the help of the specified language.
The Remote Monitoring Agent (RMA) helps in migrating agents to different systems for gathering data.
The Agent Monitoring System (AMS) is used to know the set of available locations and also the status of
the other agents in the system.