Wiki source code of TuCSoN4Jason
author | version | line-number | content |
---|---|---|---|
10.1 | 1 | = {{t4jn short='n'/}} = | |
1.1 | 2 | ||
7.1 | 3 | >What is {{t4jn short='n'/}} | |
1.1 | 4 | ||
8.1 | 5 | {{t4jn short='n'/}} ({{t4jn/}} for short) is a Java library enabling Jason agents to exploit {{tucson/}} coordination services wrapped as Jason internal actions. [[Jason>>http://http://jason.sourceforge.net/wp/]] is a well-known Java-based implementation of the AgentSpeak(L) language for BDI agents. [[TuCSoN>>http://tucson.unibo.it]] is Java-based middleware providing software agents with coordination as a service via programmable logic tuple spaces, called tuple centres. | |
1.1 | 6 | ||
8.1 | 7 | 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. | |
7.1 | 8 | ||
9 | {{t4jn/}} is available under [[GNU LGPL license>>https://www.gnu.org/licenses/lgpl.html]]. | ||
10 | |||
3.1 | 11 | >Getting Started | |
5.1 | 12 | * download t4jn.jar archive from the [[Downloads>>http://bitbucket.org/smariani/tucson4jason/downloads]] section on its [[Bitbucket repository>>http://bitbucket.org/smariani/tucson4jason/]] | |
13 | * download the libraries it depends on | ||
14 | ** Jason — from its [[Download>>http://sourceforge.net/projects/jason/files/]] page //(jason.jar)// | ||
6.1 | 15 | ** {{tucson/}} — from its [[Downloads>>TuCSoN.Downloads]] section //(tucson.jar)// | |
16 | ** {{tuprolog/}} — from its [[Downloads>>Tuprolog.Downloads]] section //(2p.jar)// | ||
5.1 | 17 | * open a command prompt in the folder where you put all the four jars above, then type | |
8.1 | 18 | ** on Linux & Mac OS | |
2.1 | 19 | {{code}}java -cp libs/tucson.jar:libs/2p.jar alice.TuCSoN.service.TucsonNodeService{{/code}} | |
5.1 | 20 | ** on Windows | |
2.1 | 21 | {{code}}java -cp libs/tucson.jar;libs/2p.jar alice.TuCSoN.service.TucsonNodeService{{/code}} | |
5.1 | 22 | * open a new tab/window of the command prompt in the folder where you put all the four jars above, then type | |
23 | ** on Linux & Mac OS | ||
2.1 | 24 | {{code}}java -cp t4jn.jar:../libs/jason.jar:../libs/2p.jar:../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j{{/code}} | |
5.1 | 25 | ** on Windows | |
2.1 | 26 | {{code}}java -cp t4jn.jar;../libs/jason.jar;../libs/2p.jar;../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j{{/code}} | |
5.1 | 27 | * Jason GUI should appear with the t4jn welcome banner, as depicted below | |
28 | ** [[image:t4jn-running.jpeg||width="800"]] | ||
29 | You should see many prints on Jason GUI, tracking what happens in the MAS. | ||
4.1 | 30 | {{include reference='Environment'/}} | |
1.1 | 31 |