-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMBTI_Mas.java
More file actions
40 lines (35 loc) · 1.2 KB
/
MBTI_Mas.java
File metadata and controls
40 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mbti_mas;
import jade.core.ProfileImpl;
import jade.core.Runtime;
import jade.util.ExtendedProperties;
import jade.util.leap.Properties;
import jade.wrapper.AgentContainer;
import jade.wrapper.AgentController;
import jade.wrapper.ControllerException;
/**
* Main class - starting the agents
* @author Hawlink
*/
public class MBTI_Mas {
public static AgentContainer container;
/**
* @param args the command line arguments
* @throws jade.wrapper.ControllerException
*/
public static void main(String[] args) throws ControllerException {
Runtime rt = Runtime.instance();
Properties p = new ExtendedProperties();
p.setProperty("gui", "true");
ProfileImpl pc = new ProfileImpl(p);
//starting the container
container = rt.createMainContainer(pc);
container.start();
AgentController human = container.createNewAgent("INFJTest", "Agents.Human", new Object[]{"INFJ"});
human.start();
}
}