Package jade.core.mobility
Interface AgentMobilityHelper
-
- All Superinterfaces:
ServiceHelper
public interface AgentMobilityHelper extends ServiceHelper
The vertical interface for the JADE kernel-level service managing the mobility-related agent life cycle: migration and clonation.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
-
-
Field Summary
Fields Modifier and Type Field Description static StringINFORM_CLONEDThis command is issued by an agent that has just cloned itself.static StringINFORM_MOVEDThis command is issued by an agent that has just migrated.static StringNAMEThe name of this service.static StringREQUEST_CLONEThis command name represents theclone-agentaction.static StringREQUEST_MOVEThis command name represents themove-agentaction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclone(Location destination, String newName)ClassLoadergetContainerClassLoader(String containerName, ClassLoader parent)voidmove(Location destination)voidregisterMovable(Movable m)-
Methods inherited from interface jade.core.ServiceHelper
init
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of this service.- See Also:
- Constant Field Values
-
REQUEST_MOVE
static final String REQUEST_MOVE
This command name represents themove-agentaction. This command object represents only the first half of the complete agent migration process. Even if this command is accepted by the kernel, there is no guarantee that the requested migration will ever happen. Only when theInformMovedcommand is issued can one assume that the agent migration has taken place.- See Also:
- Constant Field Values
-
REQUEST_CLONE
static final String REQUEST_CLONE
This command name represents theclone-agentaction. This command object represents only the first half of the complete agent clonation process. Even if this command is accepted by the kernel, there is no guarantee that the requested clonation will ever happen. Only when theInformClonedcommand is issued can one assume that the agent clonation has taken place.- See Also:
- Constant Field Values
-
INFORM_MOVED
static final String INFORM_MOVED
This command is issued by an agent that has just migrated. The agent migration can either be an autonomous move of the agent or the outcome of a previously issuedRequestMovecommand. In the second case, this command represents only the second half of the complete agent migration process.- See Also:
- Constant Field Values
-
INFORM_CLONED
static final String INFORM_CLONED
This command is issued by an agent that has just cloned itself. The agent clonation can either be an autonomous move of the agent or the outcome of a previously issuedRequestClonecommand. In the second case, this command represents only the second half of the complete agent clonation process.- See Also:
- Constant Field Values
-
-
Method Detail
-
registerMovable
void registerMovable(Movable m)
-
move
void move(Location destination)
-
getContainerClassLoader
ClassLoader getContainerClassLoader(String containerName, ClassLoader parent) throws ServiceException
- Throws:
ServiceException
-
-