Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import jade.core.Profile;
- import jade.core.ProfileImpl;
- import jade.core.Runtime;
- import jade.util.ExtendedProperties;
- import jade.util.leap.Properties;
- import jade.wrapper.AgentContainer;
- import jade.wrapper.ControllerException;
- *
- *
- public class MainContainer {
- *
- ****/**
- ****** @param args
- ******/
- ****public static void main(String[] args) {
- ********// TODO Auto-generated method stub
- ********try {
- ************Runtime rt= Runtime.instance();
- ************Properties p=new ExtendedProperties();
- ************p.setProperty(Profile.GUI, "true");
- ************ProfileImpl pc= new ProfileImpl(p);
- ************AgentContainer container=rt.createAgentContainer(pc);
- ************container.start();
- ********} catch (ControllerException e) {
- ************// TODO Auto-generated catch block
- ************e.printStackTrace();
- ********}
- *
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement