|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractMadkitBooter
public class AbstractMadkitBooter
The standard madkit booter. It starts the kernel, and then launch agents defined in a config file, with or without GUI.
Field Summary | |
---|---|
static java.lang.String |
ALL_FILES
|
protected boolean |
allowForPluginAgentification
|
static java.lang.String |
BEANSHELL_FILE
|
static java.lang.String |
CONFIG_FILE
|
static java.lang.String |
FORMALISM_FILE
|
protected static boolean |
graphics
|
protected java.util.Hashtable<AbstractAgent,java.lang.Object> |
guis
|
protected static java.lang.String |
initFile
|
protected java.lang.String |
initialAgentClass
|
protected java.lang.String |
initialAgentName
|
protected static java.lang.String |
ipaddress
|
protected static boolean |
ipnumeric
|
protected boolean |
isGraphics
|
static java.lang.String |
JESS_FILE
|
static java.util.Hashtable<java.lang.String,java.lang.Integer> |
labeltable
|
protected static boolean |
nativelf
|
protected static boolean |
network
|
protected static int |
port
|
static java.lang.String |
PYTHON_FILE
|
static java.lang.String |
SCHEME_FILE
|
static java.lang.String |
SEDIT_FILE
|
protected Kernel |
theKernel
|
Constructor Summary | |
---|---|
protected |
AbstractMadkitBooter(boolean isg,
boolean ipnumeric,
java.lang.String initFile,
java.lang.String ipaddress,
boolean network)
|
Method Summary | |
---|---|
static void |
bootProcess(java.lang.String[] argv)
Booting from command line |
protected java.awt.event.WindowListener |
createWindowHandler(Kernel k,
AbstractAgent a)
|
void |
disposeGUI(AbstractAgent a)
This method is called by the MadKit kernel when a local agent is killed, so that the host graphical application can clean up the wrapper graphical interface |
void |
disposeGUIImmediatly(AbstractAgent a)
This method is called by the MadKit kernel when a local agent request the host graphical application to remove its wrapper graphical interface |
static java.lang.String |
getAgentLabel(java.lang.String lab)
Gets a new agent label from the agentLabel table... |
static java.lang.String |
getAgentLabelFromClassName(java.lang.String s)
Gets a new agent label from its class, using the function getAgentLabel. |
static AbstractMadkitBooter |
getBooter()
|
java.lang.Object |
getDefaultGUIObject(AbstractAgent a)
This method defines a default GUI object that will be instanciated when an agent does not define its initGUI() method. |
protected SplashScreen |
getSplashScreen()
|
protected void |
init(boolean isg,
boolean ipnumeric,
java.lang.String initFile,
java.lang.String ipaddress,
boolean network)
Initialization method of the boot process. |
void |
launchAgent(Element elt)
Launch an agent from a XML element |
protected void |
launchAgent(java.lang.String ag,
java.lang.String name)
|
void |
loadConfigFile(java.io.File f)
|
void |
loadFile(AbstractAgent ag,
java.io.File f)
|
AbstractAgent |
makeJavaAgent(AbstractAgent ag,
java.lang.String className,
boolean gui)
|
AbstractAgent |
makeScriptAgent(AbstractAgent ag,
java.lang.String className,
java.lang.String typeArg,
java.lang.Object arg,
boolean gui)
Create a ScriptAgent (i.e. |
static void |
setBooter(AbstractMadkitBooter boot)
|
void |
setProgress(java.lang.String s)
|
protected void |
setSplashScreen(SplashScreen splash)
|
void |
setupGUI(AbstractAgent a)
This method is called by the MadKit kernel when a new agent is launched, it is up to the graphical application to setup the appropriate widget in cooperation with the agent (i.e. with the getGUIObject() method in the Agent class) |
void |
setupGUI(AbstractAgent a,
java.awt.Point p,
java.awt.Dimension d)
This method is identical to setupGUI(AbstractAgent a) except that location and dimension of the graphic interface are passed as arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int port
protected static boolean graphics
protected static boolean ipnumeric
protected static boolean nativelf
protected static java.lang.String initFile
protected static java.lang.String ipaddress
protected static boolean network
public static java.lang.String CONFIG_FILE
public static java.lang.String SCHEME_FILE
public static java.lang.String PYTHON_FILE
public static java.lang.String BEANSHELL_FILE
public static java.lang.String JESS_FILE
public static java.lang.String SEDIT_FILE
public static java.lang.String FORMALISM_FILE
public static java.lang.String ALL_FILES
protected Kernel theKernel
protected boolean isGraphics
protected java.util.Hashtable<AbstractAgent,java.lang.Object> guis
protected java.lang.String initialAgentClass
protected java.lang.String initialAgentName
protected boolean allowForPluginAgentification
public static java.util.Hashtable<java.lang.String,java.lang.Integer> labeltable
Constructor Detail |
---|
protected AbstractMadkitBooter(boolean isg, boolean ipnumeric, java.lang.String initFile, java.lang.String ipaddress, boolean network)
Method Detail |
---|
public static void setBooter(AbstractMadkitBooter boot)
public static AbstractMadkitBooter getBooter()
protected void setSplashScreen(SplashScreen splash)
protected SplashScreen getSplashScreen()
public void setProgress(java.lang.String s)
public static java.lang.String getAgentLabel(java.lang.String lab)
public static java.lang.String getAgentLabelFromClassName(java.lang.String s)
public AbstractAgent makeScriptAgent(AbstractAgent ag, java.lang.String className, java.lang.String typeArg, java.lang.Object arg, boolean gui)
public AbstractAgent makeJavaAgent(AbstractAgent ag, java.lang.String className, boolean gui)
protected void init(boolean isg, boolean ipnumeric, java.lang.String initFile, java.lang.String ipaddress, boolean network)
isg
- ipnumeric
- initFile
- ipaddress
- network
- public java.lang.Object getDefaultGUIObject(AbstractAgent a)
GraphicShell
getDefaultGUIObject
in interface GraphicShell
public void setupGUI(AbstractAgent a)
GraphicShell
setupGUI
in interface GraphicShell
public void setupGUI(AbstractAgent a, java.awt.Point p, java.awt.Dimension d)
GraphicShell
setupGUI
in interface GraphicShell
protected java.awt.event.WindowListener createWindowHandler(Kernel k, AbstractAgent a)
public void disposeGUI(AbstractAgent a)
GraphicShell
disposeGUI
in interface GraphicShell
public void disposeGUIImmediatly(AbstractAgent a)
GraphicShell
disposeGUIImmediatly
in interface GraphicShell
protected void launchAgent(java.lang.String ag, java.lang.String name)
public void launchAgent(Element elt)
public void loadConfigFile(java.io.File f)
public void loadFile(AbstractAgent ag, java.io.File f)
public static void bootProcess(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |