applying model driven development in mas for limited devices

22
Outline Technology MDD Design Example Conclusions Applying Model Driven Development in MAS for limited devices J. Agüero, M. Rebollo, C. Carrascosa and V. Julián Univ. Politécnica de Valencia (Spain) European Workshop on MAS December 2009, Ayia Napa (Cyprus) J. Agüero et al. DSIC-UPV Applying MDD in MAS for limited devices

Upload: miguel-rebollo

Post on 29-Nov-2014

1.183 views

Category:

Technology


0 download

DESCRIPTION

This work presents a transformation process that allows to gen-erate automatically the code of an agent over his execution platform.That is, an agent is developed under the MDD approach in an easy andtransparent way for the user. The code obtained from the transforma-tions is executed over Andromeda and JADE-Leap embedded agentplatforms.

TRANSCRIPT

Page 1: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Applying Model Driven Developmentin MAS for limited devices

J. Agüero, M. Rebollo, C. Carrascosa and V. Julián

Univ. Politécnica de Valencia (Spain)

European Workshop on MASDecember 2009, Ayia Napa (Cyprus)

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 2: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

The Problem

A questionHow the gap between the design of an agent and itsimplementation can be reduced?

remarcable differences between conceptual agent model andthe implemented agentdeep knowledge of technical detailsthe challenge: to develop an embedded intelligent agent

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 3: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Our Proposal

to define a generic agent meta-modelto define transformation rules between modelsto provide support for different platforms

Besidesto create a middleware to execute agents in Android platforms

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 4: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Outline

1 Outline

2 Related Techonogies

3 Agent Design with MDD

4 Application Example

5 Conclusions and Future Work

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 5: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Related Technologies

MDD Approach

MDD proposes to automatically generate code from themodels and some specific platform details usingtransformations.Models can be used to model agents in a very abstract way,without focusing in the specific details or requirements of theplatform (platform independent model-PIM-).To define model transformations from the agent independentmeta-models (PIM) to platform specific models (PSM) andcode.

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 6: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Related Technologies

MDD Approach

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 7: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Related Technologies

Agent Methodologies Using MDD

Only a few agent development methodologies have integrated theMDD techniques in the MAS designINGENIAS MDD facilities integrated in its IDKTROPOS complete, from CIM to PSM model

PIM4AGENT defines an agent meta-model (PIM)AML follows OMG structure: MDA, MOF, UML and OCL

AUML definition of software artifacts

But. . .

most of them are focused on their own platformslack of support for implementation phase

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 8: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Related Technologies

Android Platform

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 9: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

The Complete Process

Transformations (PIM→PSM→Code) of the agent model into theagent platform: ANDROMEDA and JADE-Leap

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 10: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

π−agent: Agent Model

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 11: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

π−agent: Agent Model

Development of agent model in Android using Android buildingblock API (release 1.0)

agent-π Android Overloaded methodsagent service onCreate(), onStart(), onDestroy()behavior broadcast receiver registerReceiver(), onReceive()capability broadcast receiver registerReceiver(), onReceive()task activity onStart(), onDestroy()event intents IntentFilter()

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 12: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

Andromeda Platform

ANDROMEDA (ANDROideMbeddED Agent platform) is anagent platform specifically oriented toembedded agents over the Androidoperating system.Agents developed inside this platformare based on the agentπ meta-model

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 13: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

Andromeda Platform

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 14: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

Transformation rules. Andromeda

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 15: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Agent Design with MDD

Transformation rules. JADE-Leap

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 16: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Application Example

Academic Example: Bidding

To validate the proposal, transformations to develop an agent ontwo different platforms are going to be evaluated. There is a set ofagents who use a system that makes electronic auctions.

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 17: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Application Example

Transformation to Andromeda

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 18: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Application Example

Transformation to JADE-Leap

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 19: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Application Example

Code Generation

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 20: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Application Example

The Result

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 21: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Conclusions and Future Work

What we have done

test Model Driven approach to design agentspropose automatic transformations to generate code foragents in two embedded platforms.simplify the design agents over mobile platforms

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices

Page 22: Applying Model Driven Development in MAS for limited devices

Outline Technology MDD Design Example Conclusions

Conclusions and Future Work

Future Work

add concepts and components, such as the inclusion oforganizations.develope new rules for conversion of agents to other platformsand a CASE Tool

J. Agüero et al. DSIC-UPVApplying MDD in MAS for limited devices