Jason Agents in CArtAgO Working Environments

Similar documents
Introduction to the Course

Meta-models, Environment and Layers: Agent-Oriented Engineering of Complex Systems

Evolution of Middleware: Towards Agents

BaSi: Multi-Agent Based Simulation for Medieval Battles

Synchronisation in Distributed Systems

Agent-Oriented Software Engineering

Synchronisation in Distributed Systems

Agent-Oriented Software Engineering

Agent Oriented Software Engineering

Agent-Oriented Software Engineering

Science of Computers: Epistemological Premises

Environment as a first class abstraction in multiagent systems

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

Advancing Object-Oriented Standards Toward Agent-Oriented Methodologies: SPEM 2.0 on SODA

SMART ENVIRONMENTS AS AGENTS WORKSPACES

Game Engines to Model MAS: A Research Roadmap

Planning in autonomous mobile robotics

In particular, Key Performance Indicators (KPIs), defining values to be used in order to measure implementation, have been identified.

Distributed Robotics: Building an environment for digital cooperation. Artificial Intelligence series

Agent Oriented Software Engineering

Cognitive Stigmergy: A Framework Based on Agents and Artifacts

Interfacing ACT-R with External Simulations

AN AUTONOMOUS SIMULATION BASED SYSTEM FOR ROBOTIC SERVICES IN PARTIALLY KNOWN ENVIRONMENTS

Programming Open Systems with Agents, Environments and Organizations

Interfacing ACT-R with External Simulations

System modelling using Open Modelica

Towards filling the gap between AOSE methodologies and infrastructures: requirements and meta-model

Awareness in Collaborative Ubiquitous Environments: the Multilayered Multi-Agent Situated System Approach

Methodology for Agent-Oriented Software

The Regional Research and Innovation Strategies in Emilia-Romagna

Catholijn M. Jonker and Jan Treur Vrije Universiteit Amsterdam, Department of Artificial Intelligence, Amsterdam, The Netherlands

Seminar on Low Power Wide Area Networks

Towards a Methodology for Designing Artificial Conscious Robotic Systems

Overview Agents, environments, typical components

The Galaxian Project : A 3D Interaction-Based Animation Engine

Modeling Human-Robot Interaction for Intelligent Mobile Robotics

Environments for Multiagent Systems Report AgentLink Technical Forum Group Ljubljana, February 2005

A Unified Model for Physical and Social Environments

Context-Aware Interaction in a Mobile Environment

An Agent-based Quality Assurance Assessment System

ROE Simulation Program

CS343 Artificial Intelligence

Programming Open Systems with Agents, Environments and Organizations

Peripheral Link Driver for ADSP In Embedded Control Application

Distributed Virtual Environments!

Performance evaluation and benchmarking in EU-funded activities. ICRA May 2011

Exploiting Social Commitments in Programming Agent Interaction

Using OWL Artificial Institutions for dynamically creating Open Spaces of Interaction

Acquisition and representation of images

39 A Commitment-based Infrastructure for Programming Socio-Technical Systems

Infrastructure as Code CS398 - ACC

A Modeling Method to Develop Goal Oriented Adaptive Agents in Modeling and Simulation for Smart Grids

HIT3002: Introduction to Artificial Intelligence

THE MECA SAPIENS ARCHITECTURE

Agents, Intelligence and Tools

Intelligent Agents & Search Problem Formulation. AIMA, Chapters 2,

XX BrainStorming Day

Cognitive Stigmergy: A Framework Based on Agents and Artifacts

Downloaded on T10:12:33Z

UNIT-III LIFE-CYCLE PHASES

COMP150 Behavior-Based Robotics

Towards a Platform for Online Mediation

C URRICULUM V I T A E

Outline. Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types

Perspectives of development of satellite constellations for EO and connectivity

SoarML: A Graphical Modeling Language for Agents. Glenn Taylor, Jacob Crossman

ScienceDirect. Agent-Based Social Gaming with AMUSE

BDI: Applications and Architectures

Context Sensitive Interactive Systems Design: A Framework for Representation of contexts

Acquisition and representation of images

What is Empirical Modelling? Principles, Tools, Examples and Perspective. Short Orientation. Principles & Tools. Applications of EM

AMIMaS: Model of architecture based on Multi-Agent Systems for the development of applications and services on AmI spaces

Intelligent Driving Agents

Intelligent Agents p.1/25. Intelligent Agents. Chapter 2

Supporting the Design of Self- Organizing Ambient Intelligent Systems Through Agent-Based Simulation

Programming Abstractions for Augmented Worlds

An Agent-Based Architecture for an Adaptive Human-Robot Interface

COMPUTATIONAL FRAMEWORK FOR PARAMETRIC MODELING AND SYSTEM-LEVEL ASSESSMENT OF BUILDING FLOORPLANS STUDENT: EDDIE TSENG ADVISER: DR.

IMAGELAB A PLATFORM FOR IMAGE MANIPULATION ASSIGNMENTS. as published in The Journal of Computing Sciences in Colleges, Vol.

A Conceptual Modeling Method to Use Agents in Systems Analysis

Twenty Years of Engineering MAS. The shaping of the agent-oriented mindset

CS 380: ARTIFICIAL INTELLIGENCE

Agent-Oriented Software Engineering

Challenges in Transition

SPQR RoboCup 2016 Standard Platform League Qualification Report

Artificial Intelligence: An overview

Topic identification through sentiment analysis

INGEGNERIA INFORMATICA, AUTOMATICA E GESTIONALE "ANTONIO RUBERTI" Control Engineering (LM-25) A.A. 2014/2015. Didactic Offer.

Intro to Intelligent Robotics EXAM Spring 2008, Page 1 of 9

Building a Machining Knowledge Base for Intelligent Machine Tools

DEVELOPMENT OF A ROBOID COMPONENT FOR PLAYER/STAGE ROBOT SIMULATOR

Agent. Pengju Ren. Institute of Artificial Intelligence and Robotics

Funzionalità per la navigazione di robot mobili. Corso di Robotica Prof. Davide Brugali Università degli Studi di Bergamo

Systems of Systems and Emergent System Context

INTRODUCTION TO GAME AI

Distributed Vision System: A Perceptual Information Infrastructure for Robot Navigation

BSc in Music, Media & Performance Technology

MRT: Mixed-Reality Tabletop

Introduction to Autonomous Agents and Multi-Agent Systems Lecture 1

SOCS. Deliverable D14: Experiments with animated societies of computees

Transcription:

Jason Agents in CArtAgO Working Environments (The slides are partially taken from slides created by Prof. Alessandro Ricci) Laboratory of Multiagent Systems LM Laboratorio di Sistemi Multiagente LM Elena Nardini elena.nardini@unibo.it Ingegneria Due Alma Mater Studiorum Università di Bologna a Cesena Academic Year 2010/2011 Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 1 / 31

Outline 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 2 / 31

Modelling an Environment in Jason Environment in Jason There are two ways to design and implement the MAS environment: 1 Defining perceptions and actions so to operate on specific environments This is done defining in Java lower-level mechanisms, and by specialising the Agent Architecture and Agent classes 2 Creating a simulated environment This is done in Java by extending Jason s Environment class and using methods such as addpercept(string Agent, Literal Percept) Today we follow the option one. Thus, we need: An environment model: A&A model An implementation of such a model: CArtAgO An integration with Jason: CArtAgO for Jason Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 3 / 31

Outline Modelling an Environment in Jason An Environment Model 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 4 / 31

Modelling an Environment in Jason Agent & Artifact Model An Environment Model Basic Concepts 1 Agents 2 Artifacts 3 Workspaces Autonomous, goal-oriented and pro-active entities Create and co-use artifacts for supporting their activities, besides direct communication Non-autonomous, function-oriented entities; controllable and observable from agents Modelling the tools and resources used by agents, designed by MAS programmers Grouping agents & artifacts Defining the topology of the computational environment Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 5 / 31

Modelling an Environment in Jason Environment in A&A An Environment Model Is called Work Environment Is composed by Artifacts Workspaces Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 6 / 31

Modelling an Environment in Jason Artifact Computational Model An Environment Model Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 7 / 31

Modelling an Environment in Jason Interaction Model: Use An Environment Model use action: acting on operation controls to trigger operation execution Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 8 / 31

Modelling an Environment in Jason Interaction Model: Use An Environment Model Operation execution makes observable effects: Observable events & changes in observable properties Perceived by agents either as external events Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 9 / 31

Modelling an Environment in Jason Interaction Model: Observation An Environment Model observeproperty action: value of an observable property as action feedback Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 10 / 31

Modelling an Environment in Jason Interaction Model: Observation An Environment Model focus / stopfocus action start / stop a continuos observation of an artifact (possibly specifying filters) observable properties and events are mapped into percepts Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 11 / 31

Outline Modelling an Environment in Jason Environment Model Implementation 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 12 / 31

Modelling an Environment in Jason Environment Model Implementation CArtAgO CArtAgO Platform / Infrastructure Runtime environment for executing (possibly distributed) artifact-based environmnets Java-based programming model for defining artifacts Set of basic API for agent platforms to work within artifact-based environment Open-source technology Available in http://cartago.sourceforge.net/ It is possible to download the last version cartago-2.0.1.zip A Getting Started is available for the deployment A CArtAgO by Examples is available to learn CArtAgO Additional documentation... Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 13 / 31

Outline Modelling an Environment in Jason 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 14 / 31

Modelling an Environment in Jason Using Artifacts in Jason Defining CArtAgO Artifacts Single class extending Artifact Specifying the operations 1 atomic @OPERATION methods name + params usage interface control no return value 2 init operation automatically executed when the artifact is created Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 15 / 31

Example 1 Modelling an Environment in Jason public class Count extends Artifact { int count; @OPERATION void init() { count = 0; } } @OPERATION void inc() { count++; }... Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 16 / 31

Modelling an Environment in Jason Artifact Observable Events Observable Events Generated by the primitive signal Represented as labelled tuples Automatically made observable to the agent who executed the operation all the agents observing the artifact Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 17 / 31

Example 2 Modelling an Environment in Jason public class Count extends Artifact { int count; @OPERATION void init() { count = 0; } } @OPERATION void inc() { count++; signal("new_count_value", count); }... Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 18 / 31

Modelling an Environment in Jason Artifact Observable Properties Observable Properties Declared by the primitive defineobsproperty Internal primitives to read / update property value updateobsproperty getobsproperty Automatically made observable to all the agents observing the artifact Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 19 / 31

Example 3 Modelling an Environment in Jason public class Count extends Artifact { @OPERATION void init() { defineobsproperty("count", 0); } } @OPERATION void inc() { int count = getobsproperty("count"); updateobsproperty("count", count + 1); }... Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 20 / 31

Modelling an Environment in Jason CArtAgO Artifact: Clock Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 21 / 31

example-clock.mas2j Modelling an Environment in Jason Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 22 / 31

clock user.asl Modelling an Environment in Jason Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 23 / 31

Result Modelling an Environment in Jason Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 24 / 31

Outline Exercises Exercise 1 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 25 / 31

Exercises Exercise 1 Thermostat Agent with CArtAgO4Jason Requirements Check the environment temperature T. Until T is not: > 18 and < 22: Decrease T of one unit if the temperature is 22 Increase T of one unit if the temperature is 18 Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 26 / 31

Exercises Exercise 1 Thermostat Agent with CArtAgO4Jason Constraint ThermostatGUI.java represents the Artifact Thermostat Use the example 07a in the CArtAgO distribution to create a GUI Artifact Use the primitive await time() in order to periodically change the environment temperature (example 06) There are two agents: thermostat maker.asl creates the artifact thermostat gui thermostat agent.asl interact with thermostat gui to sense and change the temperature it can obtain thermostat gui through the external action lookupartifact (example 01) Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 27 / 31

Outline Exercises Exercise 2 1 Modelling an Environment in Jason An Environment Model Environment Model Implementation Using CArtAgO Artifacts from Jason Agents 2 Exercises Exercise 1 Exercise 2 3 Conclusion Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 28 / 31

Exercises Exercise 2 Thermostat Agent with Agent Interaction New Constraints There are three agents: thermostat maker.asl creates the artifact thermostat gui thermostat agent.asl interact with thermostat gui to sense and change the temperature manager agent.asl interact thermostat agent.asl to change the temperature if it is needed thermostat agent.asl and manager agent.asl interact with the artifact TupleSpace, provided by CArtAgO (example 05a) Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 29 / 31

Conclusion Conclusion Questions Centralised or distributed Agents? Direct o mediated interactions? Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 30 / 31

Conclusion Jason Agents in CArtAgO Working Environments (The slides are partially taken from slides created by Prof. Alessandro Ricci) Laboratory of Multiagent Systems LM Laboratorio di Sistemi Multiagente LM Elena Nardini elena.nardini@unibo.it Ingegneria Due Alma Mater Studiorum Università di Bologna a Cesena Academic Year 2010/2011 Elena Nardini (Università di Bologna) Jason & CArtAgO A.Y. 2010/2011 31 / 31