Tutorial 1 Running JADE Under Eclipse Dr. Fuhua Lin School of Computing and Information Systems Athabasca University, Alberta, Canada Oct. 27, 2009.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Processing and Java David Meredith
Adding a Crystal Report to M3 This presentation will assist you in adding a custom Crystal report into Millennium 3.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
2/18/2008ITK 1681 Feb. 20, Wed. 8:00 – 9:30 pm STV Closed book, notes, and no computer is allowed. 2.Everyone is allowed to bring a self- prepared.
T ESTING WITH J UNIT IN E CLIPSE Farzana Rahman. I NTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find.
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
Fall 2007CS 2251 Programming Tools Eclipse JUnit Testing make and ant.
Introduction to JADE presenter: Syuan-Hao Li
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
Eclipse for Jena & ARQ. File needed Jena ( ARQ-2.2 (
Views Dwight Deugo Nesa Matic
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Using Ant to build J2EE Applications Kumar
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
ECE355 Project SIP Applications Tiuley Alguindigue
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Workshop 9 in AOM & MAS Prof Kuldar Taveter, Tallinn University of Technology.
1 Introduction of Java Agent Development Environment (JADE) Presented by Po-Cheng Huang.
Chapter 3 Vector Class. Agenda Design and Implementation of Vector class – add, get, set remove, copy, equals, ensureCapacity Hangman using Vector class.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
For Version 6.0 and later Lattice3D Reporter Tutorial For Version 6.0 and later LATTICE TECHNOLOGY, INC.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
C OMP 401 E CLIPSE S ETUP Instructor: Robert Mills. John Hansen.
Author: Loh Jianxiong Christopher Editors: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang.
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 
For Version 4.0 and later Lattice3D Reporter Tutorial For Version 4.0 and later LATTICE TECHNOLOGY, INC.
CPSC 233 Run graphical Java programs remotely on Mac and Windows.
9/2/ CS171 -Math & Computer Science Department at Emory University.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
JADE: agents insights Fabiano Dalpiaz Agent-Oriented Software Engineering (AOSE)
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
Tutorial 2 Agent Actions Specification --- Behavior Dr. Fuhua Lin School of Computing and Information Systems Athabasca University, Alberta, Canada Oct.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Tutorial 5 Object to Agent Communication Fuhua Lin, PhD, Professor, School of Computing and Information Systems Athabasca University, Alberta, Canada Nov.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Tutorial 4 Using JADE from External Java Applications Fuhua Lin, PhD, Professor, School of Computing and Information Systems Athabasca University, Alberta,
How to Add a Printer & Printer Retention Training.
Real-Time Systems Laboratory Seolyoung, Jeong JADE (Java Agent DEvelopment framework )
TIZEN STUDIO INSTALLATION & ENVIRONMENT SETUP FOR DEVLAB
Introducing IBM Rational Software Architect
Debugging with Eclipse
CLOUD
Obtaining the Required Tools
Java on the LEGO Mindstorms EV3
Download TPL.zip to some directory
Msury Mahunnah, Tallinn University of Technology
Tutorial 6 Directory Facilitator
Setting up Eclipse Locally
How to Run a Java Program
Java External Libraries & Case Study
Most Common Grading Issues
Using Eclipse.
Scripts In Matlab.
Configuring Server to communicate with CET meters (Ethernet)
How to import CAP Library
Working with Libraries
Workshop for Programming And Systems Management Teachers
Presentation transcript:

Tutorial 1 Running JADE Under Eclipse Dr. Fuhua Lin School of Computing and Information Systems Athabasca University, Alberta, Canada Oct. 27, 2009

HelloWorld.java under a package jade.Tutorials package jadeTutorials; import jade.core.*; import jade.core.behaviours.SimpleBehaviour; public class HelloWorld extends Agent { public void setup() { SimpleBehaviour hello_behaviour = new SimpleBehaviour(this) { boolean finished = false; public void action() { System.out.println("Agent Started: Hello World!" + getLocalName()+ getName()); Location l= here(); System.out.println("I am running in a location called:"+l.getName()); System.out.println("I am running in ID called:"+l.getID()); System.out.println("I am running in an address called:"+l.getAddress()); System.out.println("I am using a protocol called:"+l.getProtocol()); finished = true; } public boolean done() {return finished; } }; addBehaviour(hello_behaviour); }

Project Properties JADE can be run under eclipse “Run” as ‘Java Application’. Before you setup the execution environment for JADE, you should add JADE’s.jar files to your project: 1.Go to Project  Properties 2. move to Java Build Path 3. in the “Libraries” tab, press “Add External JARs” button

4. Select all the JADE’s jar files in “Orders and Export” tab

Once you setup the classpath for JADE, you can create a “Run Configuration” for running JADE: 1.Go to Run  Run Configurations 2. move to Java Application 3. in the “main” tab 4. specify your project name, and 5. main class is jade.Boot, and 6. check the Include libraries when searching for a main class

In the Tab “argument”, program arguments is the arguments that would be used in command line, for example : -gui jade.Boot [agent_nickname1: java_package1.agent_class1 agent_nickname2:java_package2.agent_class2...] Where the agent_nickname is the nickname for your agent, java_package is the package of your agent, and agent_class is the java class name of your agent. After that, press “Apply”.

Running Result

To stop the application, File  Shut down Agent Platform; Press “Yes” to question “Are you really sure to exit ?” Warning: do not use “X” on the up-right of the window to exit the application in order to free the default port for running the platform.

Thanks. Please see Tutorial 2.