APICe Products » TuCSoN » TuCSoN4Jason

TuCSoN4Jason Home

What is TuCSoN4Jason

TuCSoN4Jason (T4Jn for short) is a Java library enabling Jason agents to exploit TuCSoN coordination services wrapped as Jason internal actions. Jason is a well-known Java-based implementation of the AgentSpeak(L) language for BDI agents. TuCSoN is Java-based middleware providing software agents with coordination as a service via programmable logic tuple spaces, called tuple centres.

By combining TuCSoN and Jason, T4Jn aims at providing MAS engineers with a full-featured MAS middleware for cognitive agents, enabling them to exploit both dimensions of agent-oriented software engineering — individual, through Jason agents; social, via TuCSoN tuple centres — in a complete and well-balanced way.

T4Jn is available under GNU LGPL license.


Getting Started

  • Download t4jn.jar archive from the Downloads section on its Bitbucket repository
  • Download the libraries it depends on:
    • Jason — from its Download page (jason.jar)
    • TuCSoN — from its Downloads section (tucson.jar)
    • tuProlog — from its Download section (2p.jar)
  • Open a command prompt in the folder where you put all the four jars above, then type:
    • on Linux & Mac OS
    • java -cp libs/tucson.jar:libs/2p.jar alice.TuCSoN.service.TucsonNodeService
    • on Windows
    • java -cp libs/tucson.jar;libs/2p.jar alice.TuCSoN.service.TucsonNodeService
  • Open a new tab/window of the command prompt in the folder where you put all the four jars above, then type:
    • on Linux & Mac OS
    • java -cp t4jn.jar:../libs/jason.jar:../libs/2p.jar:../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j
    • on Windows
    • java -cp t4jn.jar;../libs/jason.jar;../libs/2p.jar;../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j
  • Jason GUI should appear with the t4jn welcome banner, as depicted below:
    • t4jn-running.jpeg

You should see many prints on Jason GUI, tracking what happens in the MAS.