jade.core
Interface AgentManager
- public abstract interface AgentManager
This interface provides Agent Life Cycle management services to the
platform AMS.
|
Inner Class Summary |
static interface |
AgentManager.Listener
This callback interface is implemented by the AMS in order to be
notified of significant platform-level events (e.g. |
|
Method Summary |
void |
activate(AID agentID,
java.lang.String password)
|
void |
addListener(AgentManager.Listener l)
|
AID[] |
agentNames()
|
java.lang.String[] |
containerNames()
|
void |
copy(AID agentID,
Location where,
java.lang.String newAgentName,
java.lang.String password)
|
void |
create(java.lang.String agentName,
java.lang.String className,
java.lang.String containerName)
|
java.lang.String |
getContainerName(AID agentID)
|
void |
kill(AID agentID,
java.lang.String password)
|
void |
killContainer(java.lang.String containerName)
|
void |
move(AID agentID,
Location where,
java.lang.String password)
|
java.lang.String[] |
platformAddresses()
|
void |
removeListener(AgentManager.Listener l)
|
void |
sniffOff(AID snifferName,
java.util.List toBeSniffed)
|
void |
sniffOn(AID snifferName,
java.util.List toBeSniffed)
|
void |
suspend(AID agentID,
java.lang.String password)
|
void |
wait(AID agentID,
java.lang.String password)
|
void |
wake(AID agentID,
java.lang.String password)
|
MAIN_CONTAINER_NAME
public static final java.lang.String MAIN_CONTAINER_NAME
AUX_CONTAINER_NAME
public static final java.lang.String AUX_CONTAINER_NAME
addListener
public void addListener(AgentManager.Listener l)
removeListener
public void removeListener(AgentManager.Listener l)
containerNames
public java.lang.String[] containerNames()
agentNames
public AID[] agentNames()
platformAddresses
public java.lang.String[] platformAddresses()
getContainerName
public java.lang.String getContainerName(AID agentID)
throws NotFoundException
create
public void create(java.lang.String agentName,
java.lang.String className,
java.lang.String containerName)
throws UnreachableException
killContainer
public void killContainer(java.lang.String containerName)
kill
public void kill(AID agentID,
java.lang.String password)
throws NotFoundException,
UnreachableException
suspend
public void suspend(AID agentID,
java.lang.String password)
throws NotFoundException,
UnreachableException
activate
public void activate(AID agentID,
java.lang.String password)
throws NotFoundException,
UnreachableException
wait
public void wait(AID agentID,
java.lang.String password)
throws NotFoundException,
UnreachableException
wake
public void wake(AID agentID,
java.lang.String password)
throws NotFoundException,
UnreachableException
sniffOn
public void sniffOn(AID snifferName,
java.util.List toBeSniffed)
throws UnreachableException
sniffOff
public void sniffOff(AID snifferName,
java.util.List toBeSniffed)
throws UnreachableException
move
public void move(AID agentID,
Location where,
java.lang.String password)
throws NotFoundException,
UnreachableException
copy
public void copy(AID agentID,
Location where,
java.lang.String newAgentName,
java.lang.String password)
throws NotFoundException,
UnreachableException