SlideShare une entreprise Scribd logo
1  sur  82
JADE Java Agent Development Framework Jelena Jovanovic Email:  [email_address]
JADE basics ,[object Object],[object Object],[object Object],[object Object],06/04/09
JADE basics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
JADE basics 06/04/09 CONTAINER a running instance of the JADE runtime environment PLATFORM a set of active containers The main container of the platform; all other containers register with it as soon as they start.
The FIPA compliant agent platform ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
The FIPA compliant agent platform ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
The FIPA compliant agent platform ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Creating an agent in JADE ,[object Object],[object Object],[object Object],[object Object],06/04/09
Agent identifier - AID ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
HelloWorldAgent 06/04/09 import jade.core.Agent; public class HelloWorldAgent extends Agent { protected void setup() { System.out.println(“Hello World!”);  System.out.println(“My name is ” + getAID().getName() ); } }
Running an agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Running an agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Running an agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
HelloWorldAgent ,[object Object],[object Object],[object Object],06/04/09
Agent life cycle ,[object Object],06/04/09
Agent life cycle ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent life cycle ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Starting an agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Starting an agent ,[object Object],[object Object],[object Object],[object Object],06/04/09
The notion of behaviour ,[object Object],[object Object],[object Object],[object Object],06/04/09
The notion of behaviour ,[object Object],[object Object],[object Object],[object Object],06/04/09
Implementing a behaviour ,[object Object],[object Object],[object Object],[object Object],06/04/09
Implementing a behaviour ,[object Object],[object Object],[object Object],[object Object],06/04/09
The agent execution model 06/04/09
A more realistic HelloWorld Agent ,[object Object],[object Object],[object Object],[object Object],06/04/09
A more realistic HelloWorld Agent 06/04/09 import jade.core.Agent;  import jade.core.behaviours.*;  public class  HelloWorldAgent1  extends   Agent  {  protected void  setup() {  addBehaviour ( new  B1 ( this ) ); }  }  class   B1   extends   SimpleBehaviour  {  public  B1(Agent a) {  super (a); }  public void   action () {  System.out.println( "Hello World! My name is " +    myAgent .getAID().getName() );  finished = true; }  private boolean  finished = false;  public boolean   done () { return finished; }  }
A more realistic HelloWorld Agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
A more realistic HelloWorld Agent ,[object Object],[object Object],[object Object],[object Object],06/04/09
Back to behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Behaviours ,[object Object],[object Object],[object Object],[object Object],06/04/09
06/04/09
Primitive Behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Primitive Behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Composite Behaviours ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication 06/04/09
Agent communication ,[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],06/04/09 ACLMessage msg = new ACLMessage( ACLMessage.INFORM ); msg.setContent("I sell seashells at $10/kg" );
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Inter-agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication 06/04/09 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Example: a simple receiver agent
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09 Note: in this example, there isn't much advantage of using createReply, the real benefits become obvious in applications when other attributes like conversationID or ontology have to correspond to the original message.
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agent communication ,[object Object],[object Object],[object Object],06/04/09 Part of the BuyerAgent implementation: … ACLMessage msg = new  ACLMessage(ACLMessage.INFORM); msg.setContent( "bla...bla...bla" ); msg.addReceiver(  new AID( "store", AID.ISLOCALNAME)  ); send(msg); …
Agent communication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09 the searching agent A description of the agent(s) we are looking for
Agent communication ,[object Object],06/04/09 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],All currently running agents found by using the code snippet from the previous slide
Directory Facilitator (DF) ,[object Object],[object Object],[object Object],[object Object],06/04/09
Directory Facilitator (DF) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
DFAgentDescription Class ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Registering with DF ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Deregistering ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Searching the DF ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Searching the DF ,[object Object],06/04/09 DFAgentDescription dfd = new DFAgentDescription(); ServiceDescription sd = new ServiceDescription(); sd.setType( &quot;buyer&quot; ); dfd.addServices(sd); DFAgentDescription[] result =  DFService.search(this,dfd); System.out.println(“Buyer agets:”); for (int i = 0; i < result.length; ++i) { System.out.println(&quot; &quot; + result[i].getName() ); }
Searching the DF ,[object Object],[object Object],[object Object],06/04/09 … SearchConstraints all = new SearchConstraints(); all.setMaxResults(new Long(-1)); DFAgentDescription[] result =  DFService.search(this, dfd, all);
DF Subscription Services ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Mobile Agents ,[object Object],[object Object],[object Object],06/04/09
Mobile Agents ,[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Finding destination ,[object Object],[object Object],[object Object],[object Object],06/04/09 Action action = new Action(); action.setActor(a.getAMS()); action.setAction(new QueryPlatformLocationsAction()); sendRequest(action);
Finding destination ,[object Object],06/04/09 Suspend all activities until the message arrives
Moving an agent ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Moving an agent 06/04/09 A utility method containing a call to the Agent.getContentManager().fillContent(…)
Moving an agent ,[object Object],[object Object],[object Object],06/04/09 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Moving an agent ,[object Object],[object Object],06/04/09 getContentManager().registerLanguage(new SLCodec()); getContentManager().registerOntology(MobilityOntology. getInstance());
Cloning an agent ,[object Object],[object Object],06/04/09 Location dest = … AgentID aid = … MobileAgentDescription mad = new MobileAgentDescription();  mad.setName(aid);  mad.setDestination(dest);  String newName = &quot;Clone-&quot; + agentName;  CloneAction ca = new CloneAction(); ca.setNewName(newName); ca.setMobileAgentDescription(mad);  sendRequest(new Action(aid, ca));
Cloning an agent ,[object Object],[object Object],[object Object],06/04/09 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Agents with GUI ,[object Object],[object Object],[object Object],[object Object],06/04/09
Agents with GUI ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
Agents with GUI ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
JADE’s suite of graphical tools ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
JADE’s suite of graphical tools ,[object Object],[object Object],[object Object],[object Object],06/04/09
Jade Resources at WWW ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/04/09
JADE Java Agent Development Framework Jelena Jovanovic Email:  [email_address]

Contenu connexe

Tendances

Java applets
Java appletsJava applets
Java applets
lopjuan
 

Tendances (20)

jstl ( jsp standard tag library )
jstl ( jsp standard tag library )jstl ( jsp standard tag library )
jstl ( jsp standard tag library )
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Spring Data JPA
Spring Data JPASpring Data JPA
Spring Data JPA
 
Mongo db workshop # 01
Mongo db workshop # 01Mongo db workshop # 01
Mongo db workshop # 01
 
Dependency injection in Java, from naive to functional
Dependency injection in Java, from naive to functionalDependency injection in Java, from naive to functional
Dependency injection in Java, from naive to functional
 
Gereksinim Analizi Dokümanı Hazırlama
Gereksinim Analizi Dokümanı HazırlamaGereksinim Analizi Dokümanı Hazırlama
Gereksinim Analizi Dokümanı Hazırlama
 
Java applets
Java appletsJava applets
Java applets
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Java 8 features
Java 8 featuresJava 8 features
Java 8 features
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
 
Spring Data JPA
Spring Data JPASpring Data JPA
Spring Data JPA
 
Java pdf
Java   pdfJava   pdf
Java pdf
 
Spring framework Introduction
Spring framework IntroductionSpring framework Introduction
Spring framework Introduction
 
Real Life Clean Architecture
Real Life Clean ArchitectureReal Life Clean Architecture
Real Life Clean Architecture
 
C# Interface | Interfaces In C# | C# Interfaces Explained | C# Tutorial For B...
C# Interface | Interfaces In C# | C# Interfaces Explained | C# Tutorial For B...C# Interface | Interfaces In C# | C# Interfaces Explained | C# Tutorial For B...
C# Interface | Interfaces In C# | C# Interfaces Explained | C# Tutorial For B...
 
Class diagram- UML diagram
Class diagram- UML diagramClass diagram- UML diagram
Class diagram- UML diagram
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Polymorphism in C# Function overloading in C#
Polymorphism in C# Function overloading in C#Polymorphism in C# Function overloading in C#
Polymorphism in C# Function overloading in C#
 
Java persistence api 2.1
Java persistence api 2.1Java persistence api 2.1
Java persistence api 2.1
 

En vedette

En vedette (16)

All about agents jade
All about agents jadeAll about agents jade
All about agents jade
 
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual FrameworkEvent-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
 
Blending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination AbstractionsBlending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination Abstractions
 
Jade
JadeJade
Jade
 
FIPA's mentoring program brochure
FIPA's mentoring program brochureFIPA's mentoring program brochure
FIPA's mentoring program brochure
 
My research proposal slides.
My research proposal slides.My research proposal slides.
My research proposal slides.
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Cloud computing (Andrea Cavicchini)
Cloud computing (Andrea Cavicchini)Cloud computing (Andrea Cavicchini)
Cloud computing (Andrea Cavicchini)
 
Topic 4 -software architecture viewpoint-multi-agent systems-a software archi...
Topic 4 -software architecture viewpoint-multi-agent systems-a software archi...Topic 4 -software architecture viewpoint-multi-agent systems-a software archi...
Topic 4 -software architecture viewpoint-multi-agent systems-a software archi...
 
Introduction to Cloud Computing - ITS 2014 Edition
Introduction to Cloud Computing - ITS 2014 EditionIntroduction to Cloud Computing - ITS 2014 Edition
Introduction to Cloud Computing - ITS 2014 Edition
 
Java Framework for Multi-agent Systems
Java Framework for Multi-agent SystemsJava Framework for Multi-agent Systems
Java Framework for Multi-agent Systems
 
SNMP
SNMPSNMP
SNMP
 
Simulink
SimulinkSimulink
Simulink
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introduction
 
Agent-based System - Introduction
Agent-based System - IntroductionAgent-based System - Introduction
Agent-based System - Introduction
 
Systèmes multi agents concepts et mise en oeuvre avec le middleware jade
Systèmes multi agents concepts et mise en oeuvre avec le middleware jadeSystèmes multi agents concepts et mise en oeuvre avec le middleware jade
Systèmes multi agents concepts et mise en oeuvre avec le middleware jade
 

Similaire à Jade V

Android application model
Android application modelAndroid application model
Android application model
magicshui
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1
Hussain Behestee
 

Similaire à Jade V (20)

Spring boot
Spring bootSpring boot
Spring boot
 
Android application model
Android application modelAndroid application model
Android application model
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1
 
Building a Web-bridge for JADE agents
Building a Web-bridge for JADE agentsBuilding a Web-bridge for JADE agents
Building a Web-bridge for JADE agents
 
java tr.docx
java tr.docxjava tr.docx
java tr.docx
 
AngularJS - dependency injection
AngularJS - dependency injectionAngularJS - dependency injection
AngularJS - dependency injection
 
20 most important java programming interview questions
20 most important java programming interview questions20 most important java programming interview questions
20 most important java programming interview questions
 
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESOBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
 
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-AppsSelenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
 
RomaFramework Tutorial Basics
RomaFramework Tutorial BasicsRomaFramework Tutorial Basics
RomaFramework Tutorial Basics
 
Java 3 rd sem. 2012 aug.ASSIGNMENT
Java 3 rd sem. 2012 aug.ASSIGNMENTJava 3 rd sem. 2012 aug.ASSIGNMENT
Java 3 rd sem. 2012 aug.ASSIGNMENT
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basic
 
Fundamental Concepts of React JS for Beginners.pdf
Fundamental Concepts of React JS for Beginners.pdfFundamental Concepts of React JS for Beginners.pdf
Fundamental Concepts of React JS for Beginners.pdf
 
The Web on OSGi: Here's How
The Web on OSGi: Here's HowThe Web on OSGi: Here's How
The Web on OSGi: Here's How
 
Adding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsAdding a modern twist to legacy web applications
Adding a modern twist to legacy web applications
 
Activity
ActivityActivity
Activity
 
Activity
ActivityActivity
Activity
 
Activity
ActivityActivity
Activity
 
Activity
ActivityActivity
Activity
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Jade V

  • 1. JADE Java Agent Development Framework Jelena Jovanovic Email: [email_address]
  • 2.
  • 3.
  • 4. JADE basics 06/04/09 CONTAINER a running instance of the JADE runtime environment PLATFORM a set of active containers The main container of the platform; all other containers register with it as soon as they start.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. HelloWorldAgent 06/04/09 import jade.core.Agent; public class HelloWorldAgent extends Agent { protected void setup() { System.out.println(“Hello World!”); System.out.println(“My name is ” + getAID().getName() ); } }
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. The agent execution model 06/04/09
  • 25.
  • 26. A more realistic HelloWorld Agent 06/04/09 import jade.core.Agent; import jade.core.behaviours.*; public class HelloWorldAgent1 extends Agent { protected void setup() { addBehaviour ( new B1 ( this ) ); } } class B1 extends SimpleBehaviour { public B1(Agent a) { super (a); } public void action () { System.out.println( &quot;Hello World! My name is &quot; + myAgent .getAID().getName() ); finished = true; } private boolean finished = false; public boolean done () { return finished; } }
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 34.
  • 35.
  • 36.
  • 37.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71. Moving an agent 06/04/09 A utility method containing a call to the Agent.getContentManager().fillContent(…)
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82. JADE Java Agent Development Framework Jelena Jovanovic Email: [email_address]