trabalhos de pesquisa andrew diniz da costa [email protected]
TRANSCRIPT
![Page 2: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/2.jpg)
2 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2008 2009
Framework ASF
![Page 3: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/3.jpg)
Agent Society Framework
![Page 4: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/4.jpg)
4 © LES/PUC-Rio
Introdução
• MAS-ML
• Framework para aplicar conceitos presentes na linguagem de modelagem
– Ex: Papel, organização, ambiente ativo, etc.
• Agent Society Framework – ASF
– Criado no LES.
– Framework orientado a objetos para implementar sociedades de agentes.
– Conceitos: agente, Papel, objetivo, organização, ambiente, etc.
![Page 5: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/5.jpg)
5 © LES/PUC-Rio
Introdução
• Foundation for Intelligent Physical Agents - FIPA
– Organização dedicada a desenvolver especificações na área de SMA.
– FIPA compliant
• Comunicação de agentes (ACL)
• Gerenciamento de agentes
• Transporte de mensagens (MTS)
– Jade, Jadex, etc.
![Page 6: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/6.jpg)
6 © LES/PUC-Rio
Contribuições ao ASF
• Tornar o framework FIPA compliant– Serviço de transporte de mensagens
• 1 mensagem para 1..N receptores– Mensagens no formato ACL (Agent Communication Language)– Criação do supervisor AMS
• Criação• Alteração• Exclusão• Buscas
– Criação de uma série de classes e interfaces• Descrições de entidades• Interfaces definido os estados de ciclos de vida
![Page 7: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/7.jpg)
7 © LES/PUC-Rio
Contribuições ao ASF
• Distribuição de agentes
– Agentes na mesma ou em máquinas diferentes podem interagir.
– Uma mensagem pode ser entregue para receptores localizados em diferentes máquinas.
– Comunicação por socket.
– Possibilidade de criar outras formas de comunicação (hotspots).
![Page 8: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/8.jpg)
8 © LES/PUC-Rio
Contribuições ao ASF
• Melhorias gerais
– Novo conceito de ambiente ativo;
– Entidades melhor representadas (ex: agente, organização, etc.). Novos atributos e funcionalidades;
– Documentação completa do framework e de instâncias que servem como exemplo.
– Site do ASF (http://www.les.inf.puc-rio.br/frameworkasf/).
Agentes
Organizações
Papéis
Ambiente
![Page 9: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/9.jpg)
9 © LES/PUC-Rio
Diagrama de Classe
![Page 10: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/10.jpg)
10 © LES/PUC-Rio
Comparações com frameworks SMA
• Comparações com três frameworks: Jade, Jadex e Jack.
• Diferencial do ASF
– Melhor representação do conceito sociedade de agente.
– Maior liberdade da instância em relação à restrições do framework (Ex: política de seleção de planos).
– FIPA compliant.
– As instâncias utilizam o framework sem restrições de orientação objeto (desenvolvimento em Java).
![Page 11: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/11.jpg)
11 © LES/PUC-Rio
Uso do ASF
• Alunos de mestrado e doutorado
SILVA, V. T. ; DURAN, Feranda ; GUEDES, José ; LUCENA, Carlos José Pereira de . Governing Multi-Agent Systems. Journal of the Brazilian Computer Society, v. 2 (13), p. 19-34, 2007.
![Page 12: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/12.jpg)
12 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2008 2009
ART-TestbedMASSES
![Page 13: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/13.jpg)
Agent Reputation Trust (ART) Testbed(The finalist ZeCariocaLes)
![Page 14: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/14.jpg)
14 © LES/PUC-Rio
Motivation
• The reputation concept is a complex information.
– Someone is honest or liar.
– The information supplied by someone is good or bad.
• How can the reputation help us? What are the ways?
• Use ideas of a framework created by old students of master, José Guedes e Fernanda Duran.
• Participate of some competition.
![Page 15: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/15.jpg)
15 © LES/PUC-Rio
Competition
• Agent Reputation Trust (ART) Testbed
• Competition with agents
• AAMAS Conference
• Domain: appraisals for paintings
• Clients request appraisals for paintings from different eras
![Page 16: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/16.jpg)
16 © LES/PUC-Rio
Competition
Agent 1
era1 era2 era9... era10
Agent 2
era1 era2 era9... era10
ZeCariocaLes
era1 era2 era9... era101,0 0,1 0,5 0,7
painting era1*
![Page 17: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/17.jpg)
17 © LES/PUC-Rio
Competition
• It is necessary to complete the knowledge of each agent
• So, transactions with other agents should be executed.
• There are two types of transaction:
– Opinion
– Reputation
![Page 18: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/18.jpg)
18 © LES/PUC-Rio
Transactions between agents
![Page 19: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/19.jpg)
19 © LES/PUC-Rio
Game
• Each game has a lot of sessions. There isn’t a fix number.
• When a session finishes:– The true value of the paintings is disclosed.
– It is verified what agent got the best appraisals.
• In the current session each agent has the following information of the previous session:– The true value of the paintings
– The value of each opinion supplied by other agents
– ...
• The winner is the agent that has more money in the end of the game (the best financial administrator)
![Page 20: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/20.jpg)
20 © LES/PUC-Rio
Lasts tests before the competition
![Page 21: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/21.jpg)
21 © LES/PUC-Rio
Lasts tests before the competition
![Page 22: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/22.jpg)
22 © LES/PUC-Rio
Competition
• 17 agents (1 didn’t execute) of 13 different institutions
• Two phases– Preliminary– Final
• Preliminary phase (May 10-11)– 8 agents of the different institutions– 15 agents offered by competition (5 “bad”, 5 “neutral”, 5 “bad”
dummies )– 100 rounds
• Final phase (May 16-17)– 5 best agents of the preliminary phase– 15 agents offered by competition (5 “bad”, 5 “neutral”, 5 “bad”
dummies )– 200 rounds
![Page 23: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/23.jpg)
23 © LES/PUC-Rio
Preliminary Phase
![Page 24: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/24.jpg)
24 © LES/PUC-Rio
Final Phase
5) Pontifícia Universidade Católica do Rio de Janeiro
4) Agents Research Lab, University of Girona
3) Department of Computer Engineering, Bogazici University
2) Department of Math & Computer Science, The University of Tulsa
1) Electronics & Computer Science, University of Southampton
![Page 25: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/25.jpg)
25 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2008 2009
ART-TestbedMASSES
![Page 26: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/26.jpg)
Multi-Agent System for Stock Exchange Simulation
![Page 27: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/27.jpg)
27 © LES/PUC-Rio
MASSES
• Domínio mais real para aplicar agentes de software
• Domínio de bolsa de valores
• Agentes são investidores da bolsa
• Cada dia é uma rodada do jogo.
![Page 28: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/28.jpg)
28 © LES/PUC-Rio
Idéia Geral
![Page 29: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/29.jpg)
29 © LES/PUC-Rio
Site do MASSES
![Page 30: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/30.jpg)
30 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2008 2009
DRP-MAS
![Page 31: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/31.jpg)
A Hybrid Diagnostic-Recommendation Approach for Multi-Agent Systems
![Page 32: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/32.jpg)
32 © LES/PUC-Rio
Motivation
• Governance Framework
• Multi-agent systems are societies with autonomous and heterogeneous agents, which can work together to achieve similar or different goals.
• The reason for some agent not to achieve some goal.
• Buyer desires to buy some product from some seller.– If the goal was not achieved then which was the reason?
– What to do?
![Page 33: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/33.jpg)
33 © LES/PUC-Rio
Motivation
• Reputation concept related with diagnoses and recommendation
• Ubiquitous Computing Systems provide several situations that need of diagnoses and recommendations
![Page 34: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/34.jpg)
34 © LES/PUC-Rio © LES/PUC-Rio
Difficulties of Diagnosing and Providing Alternative Executions
• We analyzed a set of points that deserved our attention during the creation of the new module
1. Deciding how to analyze the execution of the agents
2. Selecting data for diagnosing
3. Determining strategies for diagnoses
4. Determining trustworthy agents
5. Determining strategies for recommendations
6. Representing profiles of agents
7. Different devices (cell phones, laptops, PDA)• Limitations of hardware
8. Types of connection • Speed of connection (56Kbps, 512Kbps, etc), IP.
![Page 35: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/35.jpg)
35 © LES/PUC-Rio
MediatorAgent
RequesterAgent
RecommendationAgent
DiagnosticAgent
(2)<<create>>
(2)<<create>>(1)
Request name of theDiagnosis Agent
(5)Provide name of the
Diagnosis Agent
(3)Send the
Recommendation name
(4)Send the
Requester name
General Idea
![Page 36: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/36.jpg)
36 © LES/PUC-Rio
General Idea
RequesterAgent
DiagnosticAgent
RecommendationAgent
(1)
Request advices / Supply inform
ation, such as, quality of service
(2)Provide diagnosis
result
(3)Provide advices
Plan database
![Page 37: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/37.jpg)
37 © LES/PUC-Rio
Solicitador A
Solicitador B
Mediador A
Mediador B
AgenteDiagnóstico A
Tipo de Diagnóstico 1
AgenteDiagnóstico B
Tipo de Diagnóstico 2
AgenteRecomendação A
AgenteRecomendação B
Tipo de Recomendação
Requisita
Provê
Requisita
Provê
<<criar>>
<<criar>>
<<criar>><<criar>>
General Idea
![Page 38: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/38.jpg)
38 © LES/PUC-Rio
Architecture
Application
Mediation
Diagnosis
Recommendation
Artificial IntelligenceToolset
DRP-MAS
Reputation
![Page 39: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/39.jpg)
39 © LES/PUC-Rio
DRP-MAS (Artificial Intelligence Toolset)
API Bigus*
AI DRPMAS
Forward Chaining
Backward Chaining
Fuzzy Logic
Artificial Intelligence Toolset
Inference Diagnoses
*Bigus, J., Bigus, J., 2001. Constructing Intelligent Agents Using Java, 2nd edition.
![Page 40: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/40.jpg)
40 © LES/PUC-Rio
Performing Diagnosis I/IV
• Goal: to perform diagnosis
• Such analyses are performed based on a set of information provided by the Requester agent (application agent)
Information that can be provided:
• Goal – The goal that was not achieved
• Plan executed – The plan executed by the agent
• Resources: – it may be the case that the resource could not be found, could
not used, the amount was not sufficient, …
• Profile
– The agent’s profile
![Page 41: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/41.jpg)
41 © LES/PUC-Rio
Performing Diagnosis II/IV
Information that can be provided:
• Quality of service
– A degree used to qualify the execution of the plan
• Partners
– The agents with whom the agent has interacted
• Services requested
– Services used by the agents
• Belief Base
– Base of Knowledge
• Devices
– Devices used by the customers.
• Connection
– Type of connection used.
![Page 42: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/42.jpg)
42 © LES/PUC-Rio
Performing Diagnosis III/IV
• The strategy used to make the diagnoses is a hot-spot (flexible point)
• However, the framework provides a set of APIs* to help on the diagnosis:
– backward chaining,
– forward chaining and
– reasoning with fuzzy logic
• The framework provide a default strategy that:
– Compares the amount of resource used and the desired one
– Analyzes the quality of the execution
*Joseph P. Bigus, Jennifer Bigus; Constructing Intelligent Agents Using Java, second edition.
![Page 43: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/43.jpg)
43 © LES/PUC-Rio
Performing Diagnosis IV/IV
• The diagnosis that the default strategy can provide are:
– The wrong amount of resources was used
– Several problems happened at the same time
– It was not possible to identify the problem
![Page 44: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/44.jpg)
44 © LES/PUC-Rio
Providing Recommendations
• The Recommendation agent incorporates the process of advising alternative ways to achieve some goal. It is composed of three steps: (i) to select plans, (ii) to verify the plans need for agents to request information, (iii) to choose good agents
Selecting Plan
Verifying Selected Plans
Choosing agents
![Page 45: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/45.jpg)
45 © LES/PUC-Rio
Scenarios used
• Translation
– Portuguese to English
• Music Market Place
– Buy cd from the name of some music.
Customer
Provider Service
Customer
![Page 46: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/46.jpg)
46 © LES/PUC-Rio
Conclusion
• Two versions of the DRP-MAS
– ASF + Report Framework
– Jadex + Report Framework and Fire model
• Possible Future Works
– Extend the DRP-MAS
• Extend the information set
• Define new strategies of diagnosis and recommendation
• Ubiquitous Computing
– Learning in agents
– Complex scenarios
– Etc.
![Page 47: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/47.jpg)
47 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2007 2008 2009
JADE+BDIJAAF+T
![Page 48: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/48.jpg)
Aplicabilidade do Modelo Belief-Desire-Intention no Java Agent DEveloper Framework
![Page 49: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/49.jpg)
49 © LES/PUC-Rio
Motivação
• Framework JADE não aplica o conceito BDI.
• JADEX não é uma extensão do JADE.
• JADEX e JADE são frameworks totalmente diferentes.
• Agentes JADEX e agentes JADE podem se comunicar a partir de um middleware.
![Page 50: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/50.jpg)
50 © LES/PUC-Rio
Contribuições
• Permitir que se use agentes baseados ou não no modelo BDI. Além de poderem trabalhar em conjunto.
• Representar normas definam quais comportamentos são permitidos e proibidos de serem executados pelos agentes e organizações
• Representar organizações responsáveis por fornecer normas que deverão ser seguidas por agentes de software.
• Permitir definir diferentes políticas de seleção de comportamentos e objetivos para cada agente e organização.
• Manter o framework JADE sendo FIPA-Compliant.
![Page 51: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/51.jpg)
51 © LES/PUC-Rio
Diagrama de Classes
![Page 52: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/52.jpg)
52 © LES/PUC-Rio
Diagrama de Classes (hot-frozen spots)
![Page 53: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/53.jpg)
53 © LES/PUC-Rio
Comparações
• Comparação com Jadex, Jack, Jason, ASF.
• Principais vantagens do JADE+BDI
– FIPA compliant
– Representa BDI
– Aplica mobilidade de agentes
• Vantagens de outros frameworks
– Oferece suporte para organizações e agentes usando o modelo Moise+
– Trabalha com AgentSpeak e Java
![Page 54: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/54.jpg)
54 © LES/PUC-Rio
Considerações Finais
• Estudo de caso Virtual Market Place.
• JADE+BDI ainda não foi utilizado por outros alunos.
• Trabalhos Futuros:
– Melhorar a representação de organizações e normas.
– Aplicar o conceito de papel.
– Disponibilizar framework para uso
– Escrever artigo sobre extensão realizada.
![Page 55: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/55.jpg)
55 © LES/PUC-Rio
Trabalho Realizados
2004 2006 2007 2008 2009
JADE+BDIJAAF+T
![Page 56: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/56.jpg)
JAAF+T: A Framework to Implement Self-Adaptive Agents that Apply Self-Test
![Page 57: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/57.jpg)
57 © LES/PUC-Rio
Motivation
• Self-adaptive systems become one of the main focal points of software engineers.
• Several approaches describing how systems can perform self-adaptation have been investigated.
• It is necessary to test the adapted behavior by investigating its compliance with the new environment requirements at runtime.
![Page 58: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/58.jpg)
58 © LES/PUC-Rio
Motivation
• The main problems of the approaches that test the adapted behavior at runtime are the following:
– it is not possible to define different input data to be used and output assertions to be checked by the tests
– be useful when analyzing the results of the performed tests, different log formats cannot be defined
– the self-test activity that such approaches use is specifically defined to a given self-adaptation process.
![Page 59: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/59.jpg)
59 © LES/PUC-Rio
Goal
• The goal of the presentation is to present an extension of the Java self-Adaptive Agent Framework (JAAF)to apply the self-test.
• We proposed a new control-loop
• A new activity of test is provided
![Page 60: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/60.jpg)
60 © LES/PUC-Rio
AnalyzeDecision
Effector Collect
Test
Self-adaptation Layer
ApplicationApplicationApplicationLayer
New Control Loop with Test Activity
![Page 61: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/61.jpg)
61 © LES/PUC-Rio
Classes related with Collect activity
Class related with Analyze Activity
Class related with Effector Activity
Classes related with Decision Activity
Classes related with Test Activity
![Page 62: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/62.jpg)
62 © LES/PUC-Rio
Test Activity
• The test activity is composed of four steps
– In this step the application designer should relate the actions of the agent to the test cases used to test such actions. In order to define the possible test cases that will be executed, the Test Definition Language (TDL) was created.
![Page 63: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/63.jpg)
63 © LES/PUC-Rio
Test Activity
– The next step defines the data to be used as input data and output assertions while testing the actions. In order to make the definition of such data possible, the Quality Definition Language (QDL) was defined.
![Page 64: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/64.jpg)
64 © LES/PUC-Rio
Test Activity
– After relating the test cases and the actions, and also defining the related data, the tests can be executed when requested by the decision activity. Therefore, the third step of the test activity executes the test per se.
• Different types of test can be executed, such as, unit test, functional test, performance test, etc.
• Nowadays, the framework already provides two types of executions: using JUnit and DBUnit API for unit tests
– In the sequence, it is time to generate the output logs with the resThese logs will be used by the decision activity in order to decide whether to execute the action or choose another one. ults of the executed test.
![Page 65: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/65.jpg)
65 © LES/PUC-Rio
Test Activity
• In order to use the test activity in another control loops, it is only necessary to:
– Define the input and output assertions at design time by using QDL
– Define at design time the types of logs that can be used to format the feedback provided by the test activity by using TDL
– Inform at design time the test cases that will be used to test actions by providing a TDL file
– Implement an activity able to analyze at runtime the logs provided by the test activity. The framework provides as default the Decision class that can be straightforwardly used by the application instance of the framework.
– Call the test activity by providing the action that will be tested.
![Page 66: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/66.jpg)
66 © LES/PUC-Rio
Case Study: Creation of Susceptibility Maps
![Page 67: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/67.jpg)
67 © LES/PUC-Rio
Final Considerations
• Continue studying and proposing approaches that applying self-test concept.
• Writing paper about JAAF-ST
– Self-adaptation + services + self-test
![Page 68: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/68.jpg)
68 © LES/PUC-Rio
Referências
• COSTA, Andrew Diniz da ; SILVA, Viviane Torres da ; LUCENA, Carlos J P . Computing Reputation in the Art Context: Agent Design to Handle Negotiation Challenges. In: Workshop Trust in Agent Societies, in the Seventh International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2008), 2009, Estoril. Proceedigs of the Seventh International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2008), 2009.
• COSTA, Andrew Diniz da ; LUCENA, Carlos J P ; SILVA, Viviane Torres da ; AZEVEDO, S. C. ; AZEVEDO, F. . Art Competition: Agent Designs to Handle Negotiation Challenges. In: Falcone, R.; Barber, S.K.; Sabater-Mir, J.; Singh, M.P. (Org.). (Org.). Trust in Agent Society (TRUST@AAMAS 2008 post-proceedings). Berlim: Springer-Verlag, 2008, v. 5396, p. 244-272.
• S. NETO, B. F. ; COSTA, Andrew Diniz da ; NETTO, M. T. A. ; SILVA, Viviane Torres da ; LUCENA, Carlos J P . A Framework to Implement Self-Adaptive Agents. In: International Conference on Software Engineering and Knowledge Engineering, 2009, Boston. Proceedings of the 21th International Conference on Software Engineering and Knowledge Engineering (SEKE 09), 2009.
![Page 69: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/69.jpg)
69 © LES/PUC-Rio
Referências
• S. NETO, B. F. ; COSTA, Andrew Diniz da ; SILVA, Viviane Torres da ; LUCENA, Carlos J P . JAAF-S: A Framework to Implement Autonomic Agents Able to Deal with Web Services. In: The 4th International Conference on Software and Data Technologies (ICSOFT 2009), 2009, Sofia. Proceedings of the 4th International Conference on Software and Data Technologies (ICSOFT 2009), 2009.
• COSTA, Andrew Diniz da ; SILVA, Viviane Torres da ; ALENCAR, P ; LUCENA, Carlos J P . A Hybrid Diagnostic-Recommendation System for Agent Execution in Multi-Agent Systems. In: ICSOFT-2008, 2008, Porto. Proceedings of the ICSOFT-2008, 2008.
• COSTA, Andrew Diniz da ; Nunes, C.; SILVA, Viviane Torres da; S. NETO, B. F.; LUCENA, Carlos J P . JAAF+T: A Framework to Implement Self-Adaptive Agents that Apply Self-Test. In: The 25th Symposium On Applied Computing (SAC 2010), Switzerland, 2010.
![Page 70: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/70.jpg)
70 © LES/PUC-Rio
Referências
• AZEVEDO, S. C. ; NETTO, M. T. A. ; COSTA, Andrew Diniz da ; Borsato, B.; LUCENA, Carlos J P . Multi-Agent System for Stock Exchange Simulation MASSES. In: IV Workshop on Software Engineering for Agent-oriented Systems (SEAS 2008), 2008, Campinas. Anais do SEAS 2008, 2008.
• COSTA, Andrew Diniz da ; SILVA, Viviane Torres da ; ALENCAR, P ; LUCENA, Carlos J P ; Donald, D. . A Hybrid Diagnostic-Recommendation System for Agent Execution Applied to Ubiquitous Computing Systems. In: IV Workshop on Software Engineering for Agent-oriented Systems (SEAS 2008), 2008, Campinas. Anais do SEAS 2008, 2008.
• COSTA, Andrew Diniz da ; AZEVEDO, F. ; AZEVEDO, S. C. ; SILVA, Viviane Torres da ; LUCENA, Carlos J P . Zé Carioca LES - Agent Reputation Trust (ART) testbed. In: Third Workshop on Software Engineering for Agent-Oriented Systems (III SEAS), 2007, João Pessoa. Anais do III Workshop on Software Engineering for Agent-Oriented Systems (SEAS), 2007.
![Page 71: Trabalhos de Pesquisa Andrew Diniz da Costa andrew@les.inf.puc-rio.br](https://reader035.vdocuments.com.br/reader035/viewer/2022062307/552fc105497959413d8c012d/html5/thumbnails/71.jpg)
The End