|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlatform
Interface that can be used to create, destroy and access agents from external Java code.
This interface must not be used inside agent implementations, conceptually, because it violates the autonomy principle and technically, because it easily leads to deadlocks!
Method Summary | |
---|---|
AgentIdentifier |
createAgent(String name,
String model,
String state,
Object[] args)
Create a new agent. |
void |
destroyAgent(AgentIdentifier id)
Destroy an agent. |
IExternalAccess |
getAgentInterface(AgentIdentifier id)
Get an accessor object for an agent represented by a given agent id. |
AgentIdentifier[] |
getAgents()
Get the agents on the platform. |
Method Detail |
---|
AgentIdentifier createAgent(String name, String model, String state, Object[] args)
name
- The agent's name.model
- The agent model filename.state
- The initial state (uses default if null).args
- Arguments for the agent (if any).
void destroyAgent(AgentIdentifier id)
id
- The id of the agent to destroy.AgentIdentifier[] getAgents()
IExternalAccess getAgentInterface(AgentIdentifier id)
id
- The id of the agent to destroy.
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.