Peer-to-peer and agent-based computing Agent-Based Computing: tools, languages and case studies (Cont’d)

Slides:



Advertisements
Similar presentations
An Adaptive Policy-Based Framework for Network Service Management Leonidas Lymberopoulos Emil Lupu Morris Sloman Department of Computing Imperial College.
Advertisements

GRADD: Scientific Workflows. Scientific Workflow E. Science laboris Workflows are the new rock and roll of eScience Machinery for coordinating the execution.
Embedded System, A Brief Introduction
SOA Modelling By Rajat Goyal.
On Experimenting with AgentSpeak(L) Agents Ioannis Svigkos June 2004 Harrow School of Computer Science.
Chapter 11 user support. Issues –different types of support at different times –implementation and presentation both important –all need careful design.
Formal Semantics for an Abstract Agent Programming Language K.V. Hindriks, Ch. Mayer et al. Lecture Notes In Computer Science, Vol. 1365, 1997
Component Oriented Programming 1 Chapter 2 Theory of Components.
Affective Factores in FLL. Affective Factors in FLL Learning a language means adding a new layer to your own personality Your whole being is involved.
OASIS Reference Model for Service Oriented Architecture 1.0
Component-Level Design
An Application-led Approach for Security-related Research in Ubicomp Philip Robinson TecO, Karlsruhe University 11 May 2005.
Chapter 10 System Sequence Diagrams. What is a System Sequence Diagram? A way of modeling input and output events related to systems It is a picture that.
Department of Electrical and Computer Engineering Texas A&M University College Station, TX Abstract 4-Level Elevator Controller Lessons Learned.
1 Introduction to Software Engineering Lecture 42 – Communication Skills.
Topics Creating DFD Physical and logical DFD Event driven modeling
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Operational Semantics.
Reference Book: Modern Compiler Design by Grune, Bal, Jacobs and Langendoen Wiley 2000.
Software Requirements
Introduction to Databases Transparencies
Creating Architectural Descriptions. Outline Standardizing architectural descriptions: The IEEE has published, “Recommended Practice for Architectural.
©Ian Sommerville 2006Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
An Architecture for Constructing Self-Evolving Software Systems By Nelson Azadian.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 5 Slide 1 Requirements engineering l The process of establishing the services that the.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE Massimo Poesio Intelligent agents.
Introduction to Jadex programming Reza Saeedi
2APL A Practical Agent Programming Language March 6, 2007 Cathy Yen.
An approach to Intelligent Information Fusion in Sensor Saturated Urban Environments Charalampos Doulaverakis Centre for Research and Technology Hellas.
An Introduction to Software Architecture
Cognitive Reasoning to Respond Affectively to the Student Patrícia A. Jaques Magda Bercht Rosa M. Vicari UNIVERSIDADE FEDERAL DO RIO GRANDE DO SUL BRASIL.
4 May I/O Control. 4 May What is I/O Control? A Doors feature that allows you to program input events to drive output responses – for example:
Event Driven Programming
Intent Specification Intent Specification is used in SpecTRM
Exploring an Open Source Automation Framework Implementation.
Introduction to AgentSpeak and Jason for Programming Multi-agent Systems (1) Dr Fuhua (Oscar) Lin SCIS Athabasca University June 19, 2009.
ATRACO Towards ATRACO Architecture C. Goumopoulos (CTI)
SE: CHAPTER 7 Writing The Program
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Indicator suggestions Circles of Sustainability 1. The Application2. Agent-oriented and GORITE3. Agent architecture 4. Dummy Project5. Demonstration.
Social Game Code Plan Overview Josh McCoy. Goals for the Code Plan Use of social games. –Representation –Contextually correct application –Goal oriented.
October 27, 2006 BDI Agents and AgentSpeak(L) Romelia Plesa PhD Candidate SITE, University of Ottawa.
1 UML Modeling of Spacecraft Onboard Instruments Takahiro Yamada, JAXA/ISAS April 2005.
INSTRUCTIONAL OBJECTIVES
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Software Engineering, COMP201 Slide 1 Software Requirements BY M D ACHARYA Dept of Computer Science.
Object Oriented Analysis Unified Modeling Language By Mary Biddle.
Computer Science Up Down Controls, Decisions and Random Numbers.
Functionality of objects through observation and Interaction Ruzena Bajcsy based on Luca Bogoni’s Ph.D thesis April 2016.
Sensors Control Systems with Flowol.
GCSE COMPUTER SCIENCE Computers
Service-Oriented Computing: Semantics, Processes, Agents
Chapter 1 OBJECT-ORIENTED ANALYSIS AND DESIGN
Modelling rich interaction
Chapter 1 Reasons to study concepts of PLs Programming Domains
1.1 Reasons to study concepts of PLs
Service-Oriented Computing: Semantics, Processes, Agents
Chapter 2 Database Environment Pearson Education © 2009.
Michael Wooldridge presented by Kim Sang Soon
Design and Implementation
An Introduction to Software Architecture
Service-Oriented Computing: Semantics, Processes, Agents
Belief Desire Intention
Applying Use Cases (Chapters 25,26)
Applying Use Cases (Chapters 25,26)
Chapter 2 Database Environment Pearson Education © 2009.
Programming Languages, Preliminaries, History & Evolution
Agenda Software development (SD) & Software development methodologies (SDM) Orthogonal views of the software OOSD Methodology Why an Object Orientation?
Chapter 2 Database Environment Pearson Education © 2009.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

peer-to-peer and agent-based computing Agent-Based Computing: tools, languages and case studies (Cont’d)

peer-to-peer and agent-based computing 2 Agent Programming Languages Agent-oriented programming languages –Not essential, BUT make life easier… Do you know of a specific functionality that can only be implemented with a particular programming language? –Special-purpose programming languages increase productivity as they offer higher-level constructs Particular aspects of the targeted domain are easier to explore Agent-oriented programming languages are useful –However, there are many out there and many more are appearing… –Let’s look at some of them!

peer-to-peer and agent-based computing 3 AgentSpeak Influential abstract programming language Uses the BDI agent model (we’ll see more about it) –Beliefs: what the agent believes about the environment –Desires: what the agent needs to achieve –Intentions: plans to fulfil the desires

peer-to-peer and agent-based computing 4 AgentSpeak Architecture

peer-to-peer and agent-based computing 5 AgentSpeak Control Loop 1.Agent receives events which are either –External (from the environment or from sensors) –Internally generated Events (news and existing ones) are beliefs 2.Agent looks for plans that match events –Matching plans become desires 3.Agent chooses one plan from its desires to execute –Chosen plan is an intention 4.Execute chosen plan –During execution of plan, new events arise – go to 1

peer-to-peer and agent-based computing 6 AgentSpeak: Beliefs Beliefs represent information the agent has –About the environment –About its own internal state Encoded as ground first-order logic predicates sensor(temperature, 30) sensor(smoke, low) sensor(movement, detected) status(light, on) status(door, closed) status(window, open)

peer-to-peer and agent-based computing 7 AgentSpeak: Plans Created off-line (manually or via planning systems) Provide agents with a description of the actions it should perform: –How to respond to events (e.g., if fire detected, then enact the plan to put out fire and alert fire brigade) –How to achieve goals (e.g., how to book a flight from Dundee to Paris) Plan structure: –Trigger condition: an event the plan can handle –Context: conditions under which plan can be used –Body: actual actions comprising the plan

peer-to-peer and agent-based computing 8 AgentSpeak: Plans (Cont’d) Format: TriggeringEvent : Context <- Body Meaning: –If TriggeringEvent arises and –Context holds in the current set of beliefs then –Execute Body

peer-to-peer and agent-based computing 9 AgentSpeak: Events Achieve goal P: +!P Drop goal P: -!P Add new belief B: +B Drop belief B: -B

There is one single plan: if you have acquired goal “start” then when “true” holds (it always does) carry out the single step plan “print(“hello world”) Agent has a single initial goal /* Initial goals */ !start. /* Plans */ +!start : true <-.print("hello world."). peer-to-peer and agent-based computing 10 AgentSpeak: “Hello World”

peer-to-peer and agent-based computing 11 Jason An interpreter of AgentSpeak in Java Development environment for MASs Free downloads: – Integrated with JADE (distributed execution) Eclipse plug-in

peer-to-peer and agent-based computing 12 Java Extensions for Agent Programming Various extensions to Java –Agent-specific constructs/built-ins –JACK, JADE and JASON are Java extensions! There are, however, APIs which retain the syntax and “object-orientedness” of Java Agent Building and Learning Environment (ABLE) –IBM’s agent toolkit –Java interfaces and base classes defining a library of JavaBeans called AbleBeans, including Reading and writing text and database data, Rule-based inferencing using Boolean and fuzzy logic, Machine learning techniques (e.g., neural networks, Bayesian classifiers, and decision trees).

peer-to-peer and agent-based computing 13 Case Study 1: Softbots Software robots (Softbots) –Intelligent software agents that use software tools and services on a person's behalf –User communicates what she wants accomplished (the goals), and softbots dynamically determine how to satisfy the person’s request Tool use is one of the hallmarks of intelligence –Softbots rely on the same tools and utilities available to human computer users –Tools for sending mail, printing files, searching the Web… Popular Softbots interact with a wide range of software tools and services through the WWW

peer-to-peer and agent-based computing 14 Case Study 1: MetaCrawler WWW search services operated by the Univ. of Washington –1995–1997 –Licensed to Go2Net, now InfoSpace, in Single, central interface for WWW document searching

peer-to-peer and agent-based computing 15 Case Study 1: MetaCrawler (Cont’d) Upon receiving a query: 1.It posts the query to multiple search engines in parallel, then 2.It performs sophisticated pruning on the responses returned MetaCrawler prunes as much as 75% of the returned responses as irrelevant, outdated, or unavailable

peer-to-peer and agent-based computing 16 Case Study 1: MetaCrawler (Cont’d) Current version (

peer-to-peer and agent-based computing 17 Case Study 2: Calendar Agent Retsina Semantic Web Calendar Agent –Developed at Carnegie-Melon’s Intell. Software Agents Lab –Interoperability between RDF-based calendar descriptions on the web, and Personal Information Manager (PIM) Systems such as Microsoft's Outlook –Home page: Schedules can be: –Browsed and imported by the user manually –Shared and imported autonomously by agents Assists users in keeping calendar “up-to-date” –Higher fidelity model of user’s schedule –Minimal cost on the user’s time Supports meeting scheduling –Agents negotiate meeting times based on user’s schedule and preferences

peer-to-peer and agent-based computing 18 Case Study 2: Calendar Agent (Cont’d) Schedules and events described on the web in RDF, using ontologies, and linked to individual's contact information (e.g., their home page). Consists of –Distributed Meeting Scheduling Engine and –RETSINA Semantic Web Calendar Parser. Agent –Assists in organising and scheduling meetings between several individuals, –Coordinates these based on existing schedules maintained by MS Outlook.

peer-to-peer and agent-based computing 19 Case Study 2: Calendar Agent (Cont’d) Agent interface and importing schedules onto Outlook

peer-to-peer and agent-based computing 20 Case Study 3: Robot Teams Teams of robots must coordinate their actions and collaborate –Example: robots playing football –Each robot is an autonomous agent Robocup: yearly competition of robot teams – –Sony AIBO Legged League Football matches between teams of autonomous quadruped robots made by Sony Corporation. –Sony AIBO's are publicly available and can be programmed

peer-to-peer and agent-based computing 21 Further reading A Survey of Programming Languages and Platforms for Multi-Agent Systems, Bordini et. al., 2006, available at A%20Survey%20of%20Programming%20Languages%20and %20Platforms...pdf A%20Survey%20of%20Programming%20Languages%20and %20Platforms...pdf Logics and Agent Programming Languages, Logan, B. and Alechina, N., ESSLLI 2009, available at JASON examples: IBM’s ABLE: ex.jsp?topic=%2Frzahx%2Findex.html ex.jsp?topic=%2Frzahx%2Findex.html