|
|
1 |
= {{t4jn short='n'/}} = |
|
|
2 |
|
|
|
3 |
>What is {{t4jn short='n'/}} |
|
|
4 |
|
|
|
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. |
|
|
6 |
|
|
|
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. |
|
|
8 |
|
|
|
9 |
{{t4jn/}} is available under [[GNU LGPL license>>https://www.gnu.org/licenses/lgpl.html]]. |
|
|
10 |
|
|
|
11 |
>Getting Started |
|
|
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)// |
|
|
15 |
** {{tucson/}} — from its [[Downloads>>TuCSoN.Downloads]] section //(tucson.jar)// |
|
|
16 |
** {{tuprolog/}} — from its [[Downloads>>Tuprolog.Downloads]] section //(2p.jar)// |
|
|
17 |
* open a command prompt in the folder where you put all the four jars above, then type |
|
|
18 |
** on Linux & Mac OS |
|
|
19 |
{{code}}java -cp libs/tucson.jar:libs/2p.jar alice.TuCSoN.service.TucsonNodeService{{/code}} |
|
|
20 |
** on Windows |
|
|
21 |
{{code}}java -cp libs/tucson.jar;libs/2p.jar alice.TuCSoN.service.TucsonNodeService{{/code}} |
|
|
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 |
|
|
24 |
{{code}}java -cp t4jn.jar:../libs/jason.jar:../libs/2p.jar:../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j{{/code}} |
|
|
25 |
** on Windows |
|
|
26 |
{{code}}java -cp t4jn.jar;../libs/jason.jar;../libs/2p.jar;../libs/tucson.jar jason.infra.centralised.RunCentralisedMAS t4jn_bookTrading.mas2j{{/code}} |
|
|
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. |
|
|
30 |
{{include reference='Environment'/}} |