<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">The THOMAS architecture: A case study in Home Care Scenarios</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author role="corresp">
							<persName><forename type="first">Fraile</forename><surname>Nieto</surname></persName>
							<email>jafraileni@upsa.es</email>
							<affiliation key="aff0">
								<orgName type="institution">Pontifical University of Salamanca</orgName>
								<address>
									<addrLine>c/ Compañía 5</addrLine>
									<postCode>37002</postCode>
									<settlement>Salamanca</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">University of Salamanca</orgName>
								<address>
									<addrLine>Plaza de la Merced s/n</addrLine>
									<postCode>37008</postCode>
									<settlement>Salamanca</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">S</forename><surname>Rodríguez</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution">Pontifical University of Salamanca</orgName>
								<address>
									<addrLine>c/ Compañía 5</addrLine>
									<postCode>37002</postCode>
									<settlement>Salamanca</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">University of Salamanca</orgName>
								<address>
									<addrLine>Plaza de la Merced s/n</addrLine>
									<postCode>37008</postCode>
									<settlement>Salamanca</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">The THOMAS architecture: A case study in Home Care Scenarios</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">053F366B85A8B62924B8548656EF85DF</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T15:06+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Dependent environments</term>
					<term>Abstract Arquitectures</term>
					<term>Multiagent Systems</term>
					<term>Home Care</term>
					<term>Organizations</term>
					<term>Services</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Nowadays, the need for architectures and computational models for large scale open multi-agent systems is considered a key issue for the success of agent technology in real world scenarios. The main goal of this paper is to describe a case study in Home Care applying an abstract architecture and a computational model for large scale open multi-agent systems based on a service-oriented approach. The architecture we used is THOMAS. THOMAS is specifically addresses to design organizational structures for multiagent systems, in this case, a Home Care system. The paper presents services example for the management of a home dependent environment, which demonstrates the new features of the proposal.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The continuous growth of the dependency people sector has dramatically increased the need for new home care solutions <ref type="bibr" target="#b0">[1]</ref>  <ref type="bibr" target="#b6">[7]</ref>. Besides, the commitments that have been acquired to meet the needs of this sector, suggest that it is necessary to modernize the current systems. Home Care is one of the objectives of the pervasive computing, and dependent people require new solutions that can make use of the technological advances to provide novel and fundamental services <ref type="bibr" target="#b1">[2]</ref>. The vision of the pervasive computing allows improving the quality, access, equity and continuity of health care <ref type="bibr" target="#b1">[2]</ref>. In this sense, the intelligent environments can improve health care services and can have a high social impact, especially in the home care services for dependent chronic patients <ref type="bibr" target="#b2">[3]</ref>. Home Care requires effective communication as well as distributed problem solving <ref type="bibr" target="#b2">[3]</ref>.</p><p>Multi-agent systems <ref type="bibr" target="#b3">[4]</ref>, <ref type="bibr" target="#b14">[15]</ref>, and intelligent devices-based architectures have been recently explored as supervisor systems for health care scenarios <ref type="bibr" target="#b1">[2]</ref> for elderly people and for Alzheimer patients <ref type="bibr" target="#b6">[7]</ref>. These systems allow providing constant care in the daily life of dependent patients <ref type="bibr" target="#b4">[5]</ref>, predicting potentially dangerous situations and facilitating a cognitive and physical support for the dependent patient <ref type="bibr" target="#b2">[3]</ref>.</p><p>The goal of work is to present a case study in which the THOMAS (MeTHods, Techniques and Tools for Open Multi-Agent Systems) <ref type="bibr" target="#b5">[6]</ref>  <ref type="bibr" target="#b8">[9]</ref> architecture is used to build an open MAS for supervising and monitoring dependent patients at home. THOMAS is a new architecture for open MAS and is made up of a group of related modules that are well-suited for developing systems in volatile environments. THOMAS provides a high level of abstraction to determine which components are necessary for addressing all of the needs and characteristics of a home care environment. The multi-agent system developed offers a series of functionalities including automatic reasoning and planning mechanism for scheduling the medical staff working day, an alert system, a location and tracking system and an identification system. The medical staffs has been provided with PDAs and mobile phones, as well as with Java Card tags, and the home environments have been equipped with presence detection sensors, access control mechanisms, door opening devices and video cameras. The multi-agent system monitors the daily routine of the patient and detects dangerous situations. If any anomalous situation is detected, alert system is used to obtain medical assistance.</p><p>One of the objectives of MAS is to build systems capable of autonomous and flexible decision-making, and that will cooperate with other systems within a "society" . This "society" must consider characteristics such as distribution, continual evolution and flexibility, all of which allow the members (agents) of the society to enter and exit, to maintain a proper structural organization, and to be executed on different types of devices. All of these characteristics are incorporated in THOMAS via the open MAS and virtual organization paradigm, which was conceived as a solution for the management, coordination and control of agent performance. The organizations not only find the structural composition of agents (i.e., functions, relationships between roles) and their functional behaviour (i.e., agent tasks, plans or services), but they also describe the performance rules for the agents, the dynamic entrance and exit of components, and the dynamic formation of groups of agents.</p><p>The rest of the paper is structured as follows: section 2 provides an analysis of related studies; section 3 presents the proposed architecture model; section 4 shows an example of an implementation, highlighting the new possibilities provided by this type of architecture and specifically presents an approach for a home care management; finally, some conclusions of work are shown in section 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related works</head><p>Agents and multi-agent systems in dependency environments are becoming a reality, especially in health care. Most agents-based applications are related to the use of this technology in the monitoring of patients, treatment supervision and data mining. Lanzola present a methodology <ref type="bibr" target="#b9">[10]</ref> that facilitates the development of interoperable intelligent software agents for medical applications, and propose a generic computational model for implementing them. The model may be specialized in order to support all the different information and knowledge-related requirements of a hospital information system. Meunier proposes <ref type="bibr" target="#b10">[11]</ref> the use of virtual machines to support mobile software agents by using a functional programming paradigm. This virtual machine provides the application developer with a rich and robust platform upon which to develop distributed mobile agent applications, specifically when targeting distributed medical information and distributed image processing. While an interesting proposal, it is not viable due to the security reasons that affect mobile agents, and there is no defined alternative for locating patients or generating planning strategies. There are also agents-based systems that help patients to get the best possible treatment, and that remind the patient about follow-up tests <ref type="bibr" target="#b11">[12]</ref>. They assist the patient in managing continuing ambulatory conditions (chronic problems). They also provide health-related information by allowing the patient to interact with the online health care information network. Decker &amp; Li propose <ref type="bibr" target="#b7">[8]</ref> a system to increase hospital efficiency by using global planning and scheduling techniques. They propose a multi-agent solution that uses the generalized partial global planning approach which preserves the existing human organization and authority structures, while providing better system-level performance (increased hospital unit throughput and decreased impatient length of stay time). To do this, they use resource constraint scheduling to extend the proposed planning method with a coordination mechanism that handles mutually exclusive resource relationships. Other applications focus on home scenarios to provide assistance to elderly and dependent persons. RoboCare presents a multi-agent approach that covers several research areas, such as intelligent agents, visualization tools, robotics, and data analysis techniques to support people with their daily life activities <ref type="bibr" target="#b12">[13]</ref>. TeleCARE is another application that makes use of mobile agents and a generic platform in order to provide remote services and automate an entire home scenario for elderly people <ref type="bibr" target="#b3">[4]</ref>.</p><p>The architecture we used is THOMAS (MeTHods, techniques and tools for Open Multi-Agent Systems) <ref type="bibr" target="#b5">[6]</ref>  <ref type="bibr" target="#b8">[9]</ref>, which is composed of a set of related modules that are appropriate for developing systems in highly volatile environments similar to the one presented in this study. This paper presents the main characteristics of THOMAS as well as the results obtained after having applied the system to a case study..</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">THOMAS Architecture Model</head><p>THOMAS architecture basically consists of a set of modular services. Though THOMAS feeds initially on the FIPA<ref type="foot" target="#foot_0">1</ref> architecture, it expands its capabilities to deal with organizations, and to boost its services abilities. In this way, a new module in charge of managing organizations has been introduced into the architecture, along with a redefinition of the FIPA Directory Facilitator that is able to deal with services in a more elaborated way, following Service Oriented Architectures guidelines. As has been stated before, services are very important in this architecture. In fact, agents have access to the THOMAS infrastructure through a range of services included on different modules or components. The main components of THOMAS are the following <ref type="bibr" target="#b8">[9]</ref>:</p><p>• Service Facilitator (SF), this component offers simple and complex services to the active agents and organizations. Basically, its functionality is like a yellow page service and a service descriptor in charge of providing a green page service.</p><p>The SF acts as a gateway to access the THOMAS platform. It manages this access transparently, by means of security techniques and access rights management. The SF can find services searching for a given service profile or searching for the goals that can be fulfilled when executing the service. This is done using the matchmaking <ref type="bibr" target="#b13">[14]</ref> and service composition mechanisms <ref type="bibr" target="#b6">[7]</ref> which are provided by the SF. The SF also acts as a yellow pages manager and in this way it can find which entities provide a given service. • Organization Management System (OMS), mainly responsible for the management of the organizations and their entities. Thus, it allows the creation and management of any organization. The OMS is in charge of organization lifecycle management, including specification and administration of both their structural components (roles, units and norms) and their execution components (participant agents and roles they play, and active organizational units).</p><p>Organizations are structured by means of organizational units, which represent groups of entities (agents or other units), which are related in order to pursue a common goal. These organizational units have an internal topology (i.e. hierarchical, team, plain), which imposes restrictions on agent relationships and control (ex. supervision or information relationships). • Platform Kernel (PK), it maintains basic management services for an agent platform. The PK is in charge of providing the usual services required in a multiagent platform. Therefore, it is responsible for managing the life-cycle of the agents included in the different organizations, and it also makes it possible to have a communication channel (incorporating several message transport mechanisms) to facilitate interaction among entities. On the other hand, the PK provides safe connectivity and the mechanisms necessary for allowing multidevice interconnectivity. From a global perspective, the THOMAS architecture offers a total integration enabling agents to transparently offer and request services from other agents or entities, at the same time allowing external entities to interact with agents in the architecture by using the services provided.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Applying THOMAS to Home Care</head><p>The Home Care example is an application that facilitates the interconnection between dependent people and their environment and medical staff (doctors, nurses and personal assistant), delimiting services that each one can request or offer. The system controls which services must be provided by each agent. The internal functionality of these services is the responsibility of provider agents. However, the system imposes some restrictions regarding service profiles, service requesting orders and service results. Below, a description of the structure elements of the Home Care organization is detailed. Then, in section 4.2, a dynamical usage of the organization is explained, providing different execution scenarios.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Case Study Organization Structure</head><p>This case study is modelled as an organization (HomeCare) within which there are three organizational units (HCServiceUnit, LocationUnit and AlertUnit) each of which represents a group of agents. Each unit is dedicated to home care services, location services or alert services, respectively.</p><p>Four kinds of roles can interact in the Home Care example: patient, doctor, family and provider roles. The Patient role requests system services. More specifically, it can request home automation services, through the alert service communication with the medical service or the family and more services in their home. The Doctor role is specialized in three subroles according to communication with each unit (HCServiceDoctor, LocationDoctor and AlertDoctor). The Provider role is in charge of performing services. A provider agent offers home automation, location or alert search services. The provider role is also specialized into HCServiceProvider, LocationProvider and AlertProvider. Finally, the Family role provides the advances consultation service. It represents the family in which relatives can check the patient status. As it is a private role, agents are not able to acquire this Family role. Figure <ref type="figure" target="#fig_0">1</ref> shows the Home Care structure, with its organizations/units, roles and relationships with each other. The HomeCare organization offers three services: Automation, Location and Alert service. These services are specialized for each unit. A brief description of the profiles of all these services is shown in Table <ref type="table" target="#tab_0">1</ref>. All these services have been registered in the SF component of the THOMAS platform. In this example, we have assumed that the Home Care system does not initially have any agent registered as a service provider, nor any agent acting as a patient and nor any agent acting as a doctor. Therefore, this system has initially only been structured as a regulated space in which agents might enter to provide or request all of those specific services registered in the SF component. Consequently, in the initial state of the system, there is no provider attached to the HomeCare services.</p><p>In the following section, different scenarios are considered, in which patient and/or provider and/or doctor agents enter and participate in the system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">System Dynamics</head><p>In this section, the use of THOMAS meta-services in the HomeCare example is detailed. System dynamics are shown through the specification of different scenarios: (i) a Patient is registered; (ii) the patient is registered as a PatientLocation; (iii) new services patients are included; (iv) a doctor is registered; (v) some services are requested; (vi) malicious agents are expulsed; and (vii) a new unit is created.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.1">Patient registering</head><p>In this scenario, the process for registering a new Patient is detailed (Fig <ref type="figure" target="#fig_1">2)</ref>. Once HC1 has been registered as a member of the THOMAS platform, it asks SF which defined services have a profile similar to its own "home care service". This request is carried out using the SF SearchService (Fig 2 <ref type="figure" target="#fig_0">, message 1</ref>), in which HomeCareServiceProfile corresponds to the profile of the patient search service implemented by HC1.</p><p>The SF returns service identifiers that satisfy these search requirements together with a ranking value for each service (message 2). Ranking value indicates the degree of suitability between a service and a specified service purpose. Then HC1 executes GetProfile (message 3) in order to obtain detailed information about the OpenCloseDoor service. Service outputs are "service goal" and "profile" (message 4). The OpenCloseDoor profile specifies that service providers have to play a Patient role within HCService. Thus, HC1 requests from the OMS the AcquireRole service to acquire this patient role (message 5). AcquireRole service is carried out successfully (message 6), because HCService is accessible from Virtual organization, thus HC1 is registered as a Patient. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.2">LocationPatient registering</head><p>Once the "patient registering" process has been detailed, the registration of a location patient is illustrated (Fig <ref type="figure" target="#fig_2">3</ref>). HC1 is able to provide a search patient in the home care domain. Therefore, it asks SF whether an available service description with a closer profile exists, requesting SearchService from SF as before (Fig 3 <ref type="figure" target="#fig_0">, message 1</ref>).</p><p>In this case, SF returns both SearchPatient and IdentifyPatient since these two services are visible within HomeCare unit. As indicated in the service result, IdentifyPatient service is more appropriate for HC1 functionality. Therefore, HC1 requests information about this service from SF, using GetProfile (message 3). The IdentifyPatient profile returned (message 4) specifies that service providers must play LocationPatients within LocationUnit. Then HC1 requests OMS to adopt LocationPatient role (message 5). AcquireRole service is carried out successfully (message 6), so HC1 agent is registered as a LocationProvider. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.3">Adding new service patient</head><p>This section exemplifies how HC2 has already adopted the LocationPatient role and HC1 has been registered as a provider of the SearchPatient service. HC2 initially asks what the registered implementations of SearchPatient service are (Fig 4 <ref type="figure" target="#fig_2">, message 3</ref>). SF provides a list that contains service implementations details (message 4). HC2 decides to employ the same service process as HC1, so it uses AddServPatient service in order to request its inclusion as a provider of SearchPatient service (Figure <ref type="figure" target="#fig_3">4</ref>, message 5). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.4">Doctor registering</head><p>The following scenario shows the set of service calls for registering new agents as service doctors within the HomeCare (Fig 5 <ref type="figure">)</ref>. A new doctor agent D1, which has already been registered in the THOMAS platform, requests SearchService from SF (message 1). As a result, D1 obtains SearchPatient service identifier and ranking value (message 2). The Ranking value are calculate automatically by the SF. Ranking value indicates the degree of suitability between a service and a specified service purpose. Then, D1 employs GetProfile (message 3), which specifies that service doctor must play Doctor role within HomeCare (message 4). Therefore, D1 must acquire Doctor role to demand this service (messages 5 and 6). Once D1 plays this doctor role, it employs GetProcess service in order to find out who the service providers are and how this service can be requested (message 7). However, there are no providers for the general SearchPatient service (message 8).</p><p>Within the HomeCare unit, D1 requests SearchService again (message 9). In this case, SF returns IdentifyPatient services because both services are accessible from HomeCare organization. D1 demands the profile of IdentifyPatient service (using GetProfile, message 11), since this service is more appropriate for its needs. Taking the IdentifyPatient profile into account (message 12), D1 requests the adoption of LocationDoctor role within LocationUnit (message13). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.5">Service requesting</head><p>This scenario shows how doctor agents make demands for services (Fig <ref type="figure" target="#fig_5">6</ref>). Once D1 adopts the doctor role for SearchPatient service, it is allowed to demand services from providers. Assuming that D1 wants to make an information search about patients, it should use GetProcess service to obtain the implementations of available services and also its provider identifiers (message 1).</p><p>An implementation of SearchPatient has previously been registered by HC1 and HC2. After comparing providers of SearchPatient service returned in message 2, D1 chooses to make a service request from HC1 agent (message 3). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.6">Agent expulsion</head><p>In this scenario, the expulsion of a malicious agent is carried out (Fig7). Provider agent detects that different doctor agents (D1 and D2) have registered with the same identifier number. It consults its database and determines that D2 has been employing an identifier number that does not belong to it. D2 is punished for its fraudulent behaviour and is expelled from HomeCare. Provider requests the expulsion of D2 from OMS employing Expulse service (message 1). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.7">Unit creation</head><p>This last scenario illustrates the creation of new units within HomeCare (Fig <ref type="figure" target="#fig_7">8</ref>). Agent L1 represents a luxury home care company which specializes in luxury services. It is interested in providing information and services very luxurious. This L1 has already adopted the Provider role within HomeCare unit. However, since the services offered within LocationUnit and AlertUnit are specialized in location and alert domains, L1 decides to create a new unit (LuxuryUnit) within HomeCare (Fig 8 <ref type="figure" target="#fig_0">,  message 1</ref>). This new unit will be focused on luxury home care. Once the OMS informs L1 about the successful creation of the new unit, L1 defines luxury specific roles and services (messages 3 to 6). Finally, luxury agents would be able to adopt the LuxuryProvider role and start offering services to patient agents. After all these scenarios, several agents have joined the THOMAS platform and offer or request services within this system. Table <ref type="table" target="#tab_1">2</ref> shows the evolution of the EntityPlayList content, in which all of the new elements and relationships included due to the execution of these scenarios are emphasized. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusions</head><p>In the development of real open multi-agent systems, it becomes necessary to have methods, tools and appropriate architectures that can use the concept of agent technology in the development process, and apply decomposition, abstraction and reorganization methods. The THOMAS architecture has allowed us to directly model the organization of a home care environment according to a previous basic analysis, to dynamically and openly define the agent roles, functionalities and restrictions, and to obtain beforehand the service management capabilities (discovery, directory, etc.) within the platform. THOMAS provides us with the level of abstraction necessary for the development of our system, and the set of tools that facilitate its development.</p><p>Moreover, the proposal aims to instigate the total integration of two promising technologies, that is, multi-agent systems and service-oriented computing. In THOMAS architecture, agents can offer and invoke services in a transparent way from other agents, virtual organizations or entities, plus external entities can interact with agents through the use of the services offered. A case study example has been applied to home care to illustrate the usage of THOMAS components and services. Also the dynamics applications are developed with such architecture. In this way, examples of THOMAS service calls have been shown through several scenarios, along with the evolution of different dynamic virtual organizations. THOMAS creates a multi-agent system that facilitates the development of intelligent distributed systems and renders services to dependent person in home care environments by automating certain supervision tasks.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Fig. 1 .</head><label>1</label><figDesc>Fig. 1. Home Care structure (units and roles).</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Fig. 2 .</head><label>2</label><figDesc>Fig. 2. Example of patient registering.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Fig. 3 .</head><label>3</label><figDesc>Fig. 3. Example of LocationPatient registering.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Fig. 4 .</head><label>4</label><figDesc>Fig. 4. Example of service implementation and patient registering.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Fig. 5 .</head><label>5</label><figDesc>Fig. 5. Example of doctor registering.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Fig. 6 .</head><label>6</label><figDesc>Fig. 6. Example of service requesting.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head>Fig. 7 .</head><label>7</label><figDesc>Fig. 7. Example of agent expulsion.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_7"><head>Fig. 8 .</head><label>8</label><figDesc>Fig. 8. Example of new unit creation.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>Table 1 .</head><label>1</label><figDesc>Service Profiles for the HomeCare system.</figDesc><table><row><cell>Profiles of HCServiceUnit</cell><cell></cell><cell></cell><cell></cell><cell></cell></row><row><cell>Service: OnOffLight</cell><cell cols="2">ProfileID: OnOffLightPF</cell><cell cols="3">Description: On or off a light.</cell></row><row><cell>UnitID: HCServiceUnit</cell><cell cols="2">ClientRole: HCServicePatient</cell><cell>ProviderRole:</cell><cell></cell></row><row><cell>Inputs:</cell><cell cols="2">Outputs: [light ok]</cell><cell cols="2">HCServiceProvider</cell></row><row><cell>idlight: string</cell><cell>idlight: string</cell><cell></cell><cell cols="2">Outputs: [not ok light]</cell></row><row><cell>operation: string</cell><cell>state: string</cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>Service: LockUnlockAccess</cell><cell>ProfileID:</cell><cell></cell><cell cols="3">Description: Lock or unlock a</cell></row><row><cell>UnitID: HCServiceUnit</cell><cell cols="2">LockUnlockAccessPF</cell><cell>access.</cell><cell></cell></row><row><cell>Inputs:</cell><cell cols="2">ClientRole: HCServicePatient</cell><cell>ProviderRole:</cell><cell></cell></row><row><cell>idaccess: string</cell><cell cols="2">Outputs: [access ok]</cell><cell cols="2">HCServiceProvider</cell></row><row><cell>operation: string</cell><cell>idaccess: string</cell><cell></cell><cell cols="2">Outputs: [not ok acces]</cell></row><row><cell></cell><cell>state: string</cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>Profiles of LocationUnit</cell><cell></cell><cell></cell><cell></cell><cell></cell></row><row><cell>Service: SearchPatient</cell><cell cols="2">ProfileID: SearchPatientPF</cell><cell cols="3">Description: Search for a</cell></row><row><cell>UnitID: LocationUnit</cell><cell cols="2">ClientRole: LocationProvider,</cell><cell cols="2">patient in their home.</cell></row><row><cell>Inputs:</cell><cell cols="2">LocationDoctor, Family</cell><cell>ProviderRole:</cell><cell></cell></row><row><cell>idhome: string</cell><cell cols="2">Outputs: [patient ok]</cell><cell>LocationProvider</cell><cell></cell></row><row><cell>idpatient: string</cell><cell>name: string</cell><cell></cell><cell cols="2">Outputs: [not in home]</cell></row><row><cell></cell><cell>location: string</cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>Service: IdentifyPatient</cell><cell cols="2">ProfileID: SearchPatientPF</cell><cell>Description:</cell><cell>Identify</cell><cell>a</cell></row><row><cell>UnitID: LocationUnit</cell><cell cols="2">ClientRole: LocationProvider</cell><cell>patient.</cell><cell></cell></row><row><cell>Inputs:</cell><cell cols="2">Outputs: [patient ok]</cell><cell>ProviderRole:</cell><cell></cell></row><row><cell>idpatient: string</cell><cell>location: string</cell><cell></cell><cell>LocationProvider</cell><cell></cell></row><row><cell></cell><cell>date: time</cell><cell></cell><cell cols="2">Outputs: [not ok patient]</cell></row><row><cell></cell><cell></cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>Service: addServPatient</cell><cell cols="2">ProfileID: AddServPatientPF</cell><cell cols="3">Description: Add a patient</cell></row><row><cell>UnitID: LocationUnit</cell><cell cols="2">ClientRole: LocationProvider</cell><cell>service.</cell><cell></cell></row><row><cell>Inputs:</cell><cell cols="2">Outputs: [patient ok]</cell><cell>ProviderRole:</cell><cell></cell></row><row><cell>idpatient: string</cell><cell>location: string</cell><cell></cell><cell>LocationProvider</cell><cell></cell></row><row><cell>operation: string</cell><cell>date: time</cell><cell></cell><cell cols="2">Outputs: [not ok add patient]</cell></row><row><cell></cell><cell></cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>Profiles of AlertUnit</cell><cell></cell><cell></cell><cell></cell><cell></cell></row><row><cell>Service: SendSms</cell><cell cols="2">ProfileID: SendSmsPF</cell><cell cols="2">Description: Send a SMS.</cell></row><row><cell>UnitID: AlertUnit</cell><cell>ClientRole:</cell><cell>AlertProvider,</cell><cell cols="2">ProviderRole: AlertProvider</cell></row><row><cell>Inputs:</cell><cell>AlertDoctor,</cell><cell>Family,</cell><cell cols="2">Outputs: [not ok phone]</cell></row><row><cell>sms: string</cell><cell>AlertPatient</cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>phone: string</cell><cell cols="2">Outputs: [phone ok]</cell><cell></cell><cell></cell></row><row><cell></cell><cell>idsms: string</cell><cell></cell><cell></cell><cell></cell></row><row><cell></cell><cell>state: string</cell><cell></cell><cell></cell><cell></cell></row><row><cell>Service: ProcessSms</cell><cell cols="2">ProfileID: ProcessSmsPF</cell><cell cols="2">Description: Process a SMS.</cell></row><row><cell>UnitID: AlertUnit</cell><cell>ClientRole:</cell><cell>AlertProvider,</cell><cell cols="2">ProviderRole: AlertProvider</cell></row><row><cell>Inputs:</cell><cell>AlertDoctor,</cell><cell>Family,</cell><cell cols="2">Outputs: [not ok sms]</cell></row><row><cell>sms: string</cell><cell>AlertPatient</cell><cell></cell><cell>error</cell><cell></cell></row><row><cell>phone: string</cell><cell cols="2">Outputs: [sms ok]</cell><cell></cell><cell></cell></row><row><cell></cell><cell>sms: string</cell><cell></cell><cell></cell><cell></cell></row><row><cell></cell><cell>phone: string</cell><cell></cell><cell></cell><cell></cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_1"><head>Table 2 .</head><label>2</label><figDesc>Final content of OMS internal lists after execution of all scenarios.</figDesc><table><row><cell>EntityPlayList</cell><cell></cell><cell></cell></row><row><cell>Entity</cell><cell>Unit</cell><cell>Role</cell></row><row><cell>Doctor</cell><cell>HomeCare</cell><cell>Doctor</cell></row><row><cell>HC1</cell><cell>LocationUnit</cell><cell>LocationPatient</cell></row><row><cell>HC2</cell><cell>LocationUnit</cell><cell>LocationPatient</cell></row><row><cell>D1</cell><cell>LocationUnit</cell><cell>LocationDoctor</cell></row><row><cell>D2</cell><cell>HomeCare</cell><cell>Doctor</cell></row><row><cell>L1</cell><cell>LuxuryUnit</cell><cell>LuxuryPatient</cell></row></table></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">http://www.fipa.org (Foundation for Intelligent Physical Agents)</note>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Towards a Reference Middleware Architecture for Ambient Intelligence Systems</title>
		<author>
			<persName><forename type="first">M</forename><surname>Anastasopoulos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Niebuhr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Bartelt</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Koch</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Rausch</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications</title>
				<imprint>
			<date type="published" when="2005">2005</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Distributed Intelligence for smart home appliances</title>
		<author>
			<persName><forename type="first">C</forename><surname>Angulo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Tellez</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Tendencias de la minería de datos en España. Red Española de Minería de Datos</title>
				<meeting><address><addrLine>Barcelona, España</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Ambient Intelligence: Concepts and Applications</title>
		<author>
			<persName><forename type="first">Juan</forename><forename type="middle">C</forename><surname>Augusto</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Paul</forename><surname>Mccullagh</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Invited Paper by the International Journal on Computer Science and Information Systems</title>
		<imprint>
			<biblScope unit="volume">4</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="1" to="28" />
			<date type="published" when="2007-06">June 2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Collaborative Virtual Elderly Care Support Communities</title>
		<author>
			<persName><forename type="first">L</forename><surname>Camarinha-Matos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Afsarmanesh</surname></persName>
		</author>
		<author>
			<persName><surname>Telecare</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">The journal on Information Technology in Healthcare</title>
		<imprint>
			<biblScope unit="volume">2</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="73" to="86" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Hybrid multi-agent architecture as a real-time problem-solving model</title>
		<author>
			<persName><forename type="first">C</forename><surname>Carrascosa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Bajo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Julian</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Corchado</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Botti</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Expert Systems With Applications</title>
		<idno type="ISSN">:0957-4174</idno>
		<imprint>
			<biblScope unit="volume">34</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="2" to="17" />
			<date type="published" when="2008">2008</date>
			<publisher>Elsevier</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Service Oriented MAS: An open architecture</title>
		<author>
			<persName><forename type="first">C</forename><surname>Carrascosa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Giret</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Julian</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Rebollo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Argente</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Botti</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Actas del AAMAS 2009</title>
				<imprint>
			<date type="published" when="2009">2009</date>
		</imprint>
	</monogr>
	<note>in press</note>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Constructing Deliberative Agents with Case-based Reasoning Technology</title>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Corchado</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Laza</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">International Journal of Intelligent Systems</title>
		<imprint>
			<biblScope unit="volume">18</biblScope>
			<biblScope unit="page" from="1227" to="1241" />
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Coordinated hospital patient scheduling</title>
		<author>
			<persName><forename type="first">K</forename><surname>Decker</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Li</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 3 rd International Conference on Multi-Agent Systems (ICMAS&apos;98)</title>
				<meeting>the 3 rd International Conference on Multi-Agent Systems (ICMAS&apos;98)</meeting>
		<imprint>
			<publisher>IEEE Computer Society</publisher>
			<date type="published" when="1998">1998</date>
			<biblScope unit="page" from="104" to="111" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<monogr>
		<title level="m" type="main">Seventh international Workshop on Programming Multi-Agent Systems</title>
		<author>
			<persName><forename type="middle">A</forename><surname>Gti_Ia</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Giret</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Julian</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Rebollo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Argente</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Carrascosa</surname></persName>
		</author>
		<author>
			<persName><surname>Botti</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2009">2009. 2009</date>
			<biblScope unit="page" from="23" to="33" />
			<pubPlace>PROMAS</pubPlace>
		</imprint>
	</monogr>
	<note>An Open Architecture for Service-Oriented Virtual Organizations</note>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">A Framework for Building Cooperative Software Agents in Medical Applications</title>
		<author>
			<persName><forename type="first">G</forename><surname>Lanzola</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Gatti</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Falasconi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Stefanelli</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Artificial Intelligence in Medicine</title>
		<imprint>
			<biblScope unit="volume">16</biblScope>
			<biblScope unit="issue">3</biblScope>
			<biblScope unit="page" from="223" to="249" />
			<date type="published" when="1999">1999</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">A Virtual Machine for a Functional Mobile Agent Architecture Supporting Distributed Medical Information</title>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">A</forename><surname>Meunier</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 12 th IEEE Symposium on Computer-Based Medical Systems (CBMS&apos;99)</title>
				<meeting>the 12 th IEEE Symposium on Computer-Based Medical Systems (CBMS&apos;99)<address><addrLine>Wahington, DC</addrLine></address></meeting>
		<imprint>
			<publisher>IEEE Computer Society</publisher>
			<date type="published" when="1999">1999</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title level="a" type="main">An intelligent assistant for patient health care</title>
		<author>
			<persName><forename type="first">S</forename><surname>Miksch</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Cheng</surname></persName>
		</author>
		<author>
			<persName><forename type="first">B</forename><surname>Hayes-Roth</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 1 st international Conference on Autonomous Agents (AGENTS&apos;97)</title>
				<meeting>the 1 st international Conference on Autonomous Agents (AGENTS&apos;97)<address><addrLine>California, USA; New York</addrLine></address></meeting>
		<imprint>
			<publisher>ACM</publisher>
			<date type="published" when="1997">1997</date>
			<biblScope unit="page" from="458" to="465" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">Dcop for smart homes: A case study</title>
		<author>
			<persName><forename type="first">F</forename><surname>Pecora</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Cesta</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Computational Intelligence</title>
		<imprint>
			<biblScope unit="volume">23</biblScope>
			<biblScope unit="issue">4</biblScope>
			<biblScope unit="page" from="395" to="419" />
			<date type="published" when="2007">2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b13">
	<analytic>
		<title level="a" type="main">Larks: Dynamic matchmaking among heterogeneous software agents in cyberspace</title>
		<author>
			<persName><forename type="first">K</forename><surname>Sycara</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Widoffand</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Klusch</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Lu</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal on Autonomous Agents and Multi-Agent Systems</title>
		<imprint>
			<date type="published" when="1982">1982</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b14">
	<analytic>
		<title level="a" type="main">Disapearing Hardware</title>
		<author>
			<persName><forename type="first">R</forename><surname>Want</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Pering</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Borriello</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Farkas</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Pervasive Computing</title>
		<imprint>
			<biblScope unit="volume">1</biblScope>
			<biblScope unit="issue">1</biblScope>
			<date type="published" when="2002">2002</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
