|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Client.AgentLauncher
public class AgentLauncher
This class will allow you to do the basic operations with agent the easy way.
Contains a few simple methods useful for starting the agent like altering the log of the agent, binding parsers / starting.
Note that agent may be started only once thus this class will allow you to call launch() method only once (more calls returns nulls).
Field Summary | |
---|---|
private Agent |
agent
Agent of the launcher. |
private boolean |
launched
Whether the agent was already launched. |
private boolean |
localParser
Whether to use localParser (true) or remoteParser (false); |
private java.net.URI |
ut
Where the parser / Gamebots resides. |
Constructor Summary | |
---|---|
AgentLauncher(Agent agent,
java.net.URI ut,
boolean localParser)
|
Method Summary | |
---|---|
private void |
alterLogToScreen(java.util.logging.Logger log)
|
Agent |
getAgent()
|
java.lang.Thread |
launch()
This will launch the agent according to URL and parser specified in the constructor. |
java.lang.Thread |
launch(java.lang.String name)
This will launch the agent according to URL and parser specified in the constructor. |
void |
setLogPlatformToScreen()
Alters the agent platform log to log to screen. |
void |
setLogToScreen()
Alters the agent log to log to screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Agent agent
private java.net.URI ut
private boolean localParser
private boolean launched
Constructor Detail |
---|
public AgentLauncher(Agent agent, java.net.URI ut, boolean localParser)
Method Detail |
---|
public Agent getAgent()
private void alterLogToScreen(java.util.logging.Logger log)
public void setLogToScreen()
public void setLogPlatformToScreen()
public java.lang.Thread launch()
name
- name of the bot
public java.lang.Thread launch(java.lang.String name)
name
- name of the bot
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |