-
Notifications
You must be signed in to change notification settings - Fork 0
Importing to Jason
Nilson Lazarin edited this page May 15, 2024
·
1 revision
83FC
How to install the Jason-CLI ?
- In a terminal command, create a Multiagent System Project, using the command below:
jason app create multiAgentSystem
- Create a directory lib in the project folder and download the MailerAgent library into the library folder, using the command below:
wget https://github.com/chon-group/Hermes/releases/latest/download/HermesAgent.jar -P multiAgentSystem/lib/
- Change the file multiAgentSystem/multiAgentSystem.mas2j, including the content below:
MAS multiAgentSystem {
agents:
alice agentArchClass jason.Hermes;
aslSourcePath: "src/agt";
}
- Change the file multiAgentSystem/src/agt/alice.asl, including the content below.
// Agent alice in project multiAgentSystem
/* Initial beliefs and rules */
iotGateway("skynet.chon.group",5500).
myUUID("b91ea9e3-56e7-4547-b78d-3ba89cd9f949").
/* Initial goals */
!start.
/* Plans */
+!start: iotGateway(Server,Port) & myUUID(ID) <-
.hermes.configureContextNetConnection("skyNET", Server, Port, ID);
.hermes.connect("skyNET").
- Execute the Multiagent System
jason multiAgentSystem/multiAgentSystem.mas2j