本文整理汇总了Java中jason.infra.repl.ReplAgGUI类的典型用法代码示例。如果您正苦于以下问题:Java ReplAgGUI类的具体用法?Java ReplAgGUI怎么用?Java ReplAgGUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReplAgGUI类属于jason.infra.repl包,在下文中一共展示了ReplAgGUI类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createReplAg
import jason.infra.repl.ReplAgGUI; //导入依赖的package包/类
@Override
protected void createReplAg(String n) {
CentralisedAgArch agArch = new CentralisedAgArch();
try {
agArch.setAgName(n);
List<String> archs = new ArrayList<String>();
archs.add(CAgentArch.class.getName());
archs.add(JaCaMoAgArch.class.getName());
agArch.createArchs(archs, ReplAgGUI.class.getName(), null, null, new Settings(), JaCaMoLauncher.this);
Thread agThread = new Thread(agArch);
agArch.setThread(agThread);
agThread.start();
} catch (JasonException e1) {
e1.printStackTrace();
}
addAg(agArch);
}
示例2: createReplAg
import jason.infra.repl.ReplAgGUI; //导入依赖的package包/类
protected void createReplAg(String n) {
CentralisedAgArch agArch = new CentralisedAgArch();
agArch.setAgName(n);
agArch.setEnvInfraTier(env);
try {
agArch.createArchs(null, ReplAgGUI.class.getName(), null, null, new Settings(), RunCentralisedMAS.this);
Thread agThread = new Thread(agArch);
agArch.setThread(agThread);
agThread.start();
} catch (JasonException e1) {
e1.printStackTrace();
}
addAg(agArch);
}
示例3: createReplAg
import jason.infra.repl.ReplAgGUI; //导入依赖的package包/类
protected void createReplAg(String n) {
CentralisedAgArch agArch = new CentralisedAgArch();
try {
agArch.setAgName(n);
agArch.setEnvInfraTier(env);
agArch.createArchs(null, ReplAgGUI.class.getName(), null, null, new Settings(), this);
Thread agThread = new Thread(agArch);
agArch.setThread(agThread);
agThread.start();
} catch (JasonException e1) {
e1.printStackTrace();
}
addAg(agArch);
}