Code Monkey home page Code Monkey logo

sarl-demos-jason's Introduction

BDI Architecture for SARL

This demo show a (still) very simple way for creating a BDI reasoning agent using jason's Engine

Features

  • Load .asl (Agent Speak) files
  • Call actions defined in SARL agents and / or Capacities
  • Translate event into perceptions and Messages with the following rules (TODO)
    • If the Event is of Type KQMLMessage it will be translated as an Message in Jason
    • Any other type of event will be translated as a perceptions see [#SARL Event to Jason Perceptions translation]] and [[TODO]]

Maven Notes

Jason doesn't have a maven artifact deployed, so you have to install it before compiling. A copy of jason.jar (v1.4.0a) is distributed in the lib directory. To install it copy and paste the following in the root folder of this project.

$ mvn install:install-file -Dfile=lib/jason-1.4.0a.jar \
    -DgroupId=net.sf.jason -DartifactId=jason -Dversion=1.4.0a -Dpackaging=jar 

Then you can build the BDI demos using:

$ mvn clean install

Demos

All demos are defined in jason_demo_agents.sarl

The BDIAgent is the base agent used in all demos, only the ASL file it loads on initialization changes. Basically, each demo launcher is just other agent used only to spawn BDIAgent's with the right files.

You can run the demos using :

$ ./janus <FQN of Demo Launcher>

Factorial

A very simple factorial implemented in AgentSpeak

ASL File : src/main/resources/factorial.asl

Agent Demo Launcher: io.sarl.demos.jason.DemoFactorial

SARL Events

Simply print the events preceived.

ASL File : src/main/resources/sarl_events_perception.asl

Agent Demo Launcher: io.sarl.demos.jason.DemoSARLEvents

KQML Messages

Two agents in ASL exchanging messages.

ASL Files :

  • src/main/resources/communication/bob.asl
  • src/main/resources/communication/maria.asl

The ASL Agents are extracted from the communication demo of Jason without modification.

Agent Demo Launcher: io.sarl.demos.jason.DemoCommunication

sarl-demos-jason's People

Contributors

srodriguez avatar

Stargazers

Ömer  avatar Daniele avatar Fabien Michel avatar

Watchers

Jomi F. Hubner avatar  avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.