|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Agent
madkit.pluginmanager.ManagerAgent
public final class ManagerAgent
The ManagerAgent checks for new versions of madkit plugins.
Field Summary | |
---|---|
static java.lang.String |
community
|
static java.lang.String |
DETAILS
|
static java.lang.String |
DOWNLOADER
|
static java.lang.String |
group
|
static java.lang.String |
PLUGIN_MANAGER
|
static java.lang.String |
PROGRESS
|
static java.lang.String |
SCHEDULER
|
Constructor Summary | |
---|---|
ManagerAgent()
Creates a new Plugin Manager Agent.The agent will try to use madkit.dir as home directory or will request the user for a directory. |
|
ManagerAgent(java.io.File madkitDir,
java.util.Properties config)
Creates a new Plugin Manager Agent. |
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
void |
end()
This method is called by the agent micro-kernel at the end of the agent lifecycle. |
int |
getCurrentProcessMax()
|
java.lang.String |
getCurrentProcessNote()
|
int |
getCurrentProcessStatus()
|
int |
getGlobalProcessMax()
|
java.lang.String |
getGlobalProcessNote()
|
int |
getGlobalProcessStatus()
|
static java.io.File |
getTempDir()
|
void |
initGUI()
This method is called by the specific external graphic system (as the G-Box) to ask the agent to prepare a graphical interface. |
boolean |
isGlobalProcessFinished()
|
boolean |
isGoingToInstall(java.lang.String pluginname)
Checks if a plugin is going to be installed |
void |
live()
This method defines the main behavior for threaded agents. |
void |
markForInstall(java.lang.String pluginname)
|
void |
removeFromInstall(java.lang.String string)
|
void |
setFullInstallRequest()
|
void |
startInstall()
|
void |
upgrade()
|
Methods inherited from class madkit.kernel.Agent |
---|
connectAgencyToAgency, createPlace, createPlace, enableMobility, enableMobility, exitImmediatlyOnKill, getAgencyNamed, joinPlace, joinPlace, joinPlace, pause, receiveMessage, run, waitNextMessage, waitNextMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String community
public static final java.lang.String group
public static final java.lang.String DOWNLOADER
public static final java.lang.String PROGRESS
public static final java.lang.String PLUGIN_MANAGER
public static final java.lang.String DETAILS
public static final java.lang.String SCHEDULER
Constructor Detail |
---|
public ManagerAgent()
public ManagerAgent(java.io.File madkitDir, java.util.Properties config)
madkitDir
- Madkit install directoryMethod Detail |
---|
public void live()
Agent
live
in class Agent
Agent.live()
public boolean isGoingToInstall(java.lang.String pluginname)
pluginname
- Plugin Name
public void startInstall()
public void markForInstall(java.lang.String pluginname)
public static final java.io.File getTempDir()
public void activate()
AbstractAgent
activate
in class AbstractAgent
public void end()
AbstractAgent
end
in class AbstractAgent
public void initGUI()
AbstractAgent
initGUI
in class AbstractAgent
public void removeFromInstall(java.lang.String string)
string
- public void upgrade()
public java.lang.String getGlobalProcessNote()
public java.lang.String getCurrentProcessNote()
public int getGlobalProcessStatus()
public int getCurrentProcessStatus()
public int getGlobalProcessMax()
public int getCurrentProcessMax()
public boolean isGlobalProcessFinished()
public void setFullInstallRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |