|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.agentfactory.platform.AgentPlatform
public class AgentPlatform
A simple Agent Platform which can create and run agents specified by their agent design files. Agents are stored in a hashtable using the agent names as keys. If the platform is running on an ARM architecture AWT is used. Otherwise a swing is utilised. This class, like every other core platform class, should not reference any plugin classes directly. All plugin classes should instead be loaded dynamically, or through the use of platform description files.
| Field Summary | |
|---|---|
static java.lang.String |
SHUTDOWN_MESSAGE
|
| Constructor Summary | |
|---|---|
AgentPlatform(java.lang.String inConfigFileName)
Agent Platfrom Constructor to be used when supplying a specific platform configurtion file. |
|
| Method Summary | |
|---|---|
void |
addApplicationAgent(java.lang.String name)
|
void |
addSystemAgent(Agent agent)
|
void |
destrory()
Method which may be used to shutdown the agent platform. |
java.lang.String |
generatePlatformID()
Used to control access to the underlying Agent Management Services of the Agent Platform. |
AgentContainer |
getAgentContainer()
Get the Agent Container. |
java.util.Hashtable |
getInterpreters()
Get any registered interpreter plugins. |
java.lang.String |
getName()
Getters and Setters |
java.lang.String |
getPlatformDomain()
Get the Platform Domain. |
PlatformServiceManager |
getPlatformServiceManager()
Returns the AgentPlatform's MessageTransportManager instance. |
SecurityModule |
getSecurityModule()
|
void |
notify(java.lang.String message)
Notify any observers that the Platform has changed in some way. |
void |
removeSystemAgent(Agent agent)
|
void |
setName(java.lang.String inName)
Set the name of the platform. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| 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 SHUTDOWN_MESSAGE
| Constructor Detail |
|---|
public AgentPlatform(java.lang.String inConfigFileName)
inConfigFileName - -
A String Object. The name of the platform configuration file
to be used. This filename should be a resource name which can
be located via a class loader. e.g.
myPackage/mySubPackage/my_file| Method Detail |
|---|
public void addSystemAgent(Agent agent)
public void removeSystemAgent(Agent agent)
public void addApplicationAgent(java.lang.String name)
public java.util.Hashtable getInterpreters()
public java.lang.String generatePlatformID()
public void destrory()
public void notify(java.lang.String message)
public java.lang.String getName()
public void setName(java.lang.String inName)
public java.lang.String getPlatformDomain()
public AgentContainer getAgentContainer()
public PlatformServiceManager getPlatformServiceManager()
public SecurityModule getSecurityModule()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||