Dwelling in the Dream

November 29, 2008

Running JADE under Eclipse

Filed under: Multi-agent, Programming, Research — wrjih @ 5:05 am

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 eClipse project properties
  4. Select all the JADE’s jar files in “Orders and Export” tab

After 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

Run JADE main

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.
JADE eclipse Arguments

November 27, 2008

javax.comm & GPS

Filed under: Programming — wrjih @ 2:34 am

The GPS data can be transferred to a computer serial port, i.e. COM port. Many GPS support bluetooth can transmit data from GPS to PC COM port without physical connection. There are GPS monitors (or NMEA monitors) can verify the connection between GPS and the laptop.

In order to receive the GPS data, we should add external Java package and files. There are the following:

  1. comm.jar: Java Communications 3.0 API, also known as javax.comm (javadoc, API user guide)
  2. javax.comm.properties: property file of comm.jar
  3. win32com.dll: Microsoft Windows dynamic link library for data communication

The Sun Java Communications web site does not contain the .properties and .dll files, you can download the files from this site (.zip). Assume that the JDK has been installed in <JDK_HOME>.

  • Move win32com.dll to <JDK_HOME>\jre\bin
  • Move javax.comm.properties to <JDK_HOME>\jre\lib

You can also refer to reference:

November 1, 2008

Lecture Notes in AI Planning

Filed under: Planning, Research — wrjih @ 4:41 am

Lecture Notes

AI Planner Collections by Robert St. Amant in North Carolina State University, this site has been moved to AIwiki site.

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.