|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.Service
com.agentfactory.cldc.migration.MigrationManager
public class MigrationManager
The migration manager is a service that is responsible for controlling the migration process.
| Constructor Summary | |
|---|---|
MigrationManager(java.lang.String[] s,
AgentName[] an,
Scheduler scheduler,
MigrationPlatform platform)
Creates a new instance of MigrationService. |
|
| Method Summary | |
|---|---|
void |
modifyBinding(java.lang.Object oldName,
java.lang.Object newName)
Changes the name of an agent in the service's registry if one exists. |
FOS |
processAction(AgentName agentName,
int actionID,
FOS data)
Add the agent with the specified name to the outgoing list. |
FOS |
processPer(AgentName agentName,
int perceptionID)
Perceives information from within the service. |
void |
run()
The run method periodically connections to the MigrationServer. |
| Methods inherited from class com.agentfactory.cldc.Service |
|---|
register |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MigrationManager(java.lang.String[] s,
AgentName[] an,
Scheduler scheduler,
MigrationPlatform platform)
s - arguments to the migration service.an - the names of the agents on the platform.scheduler - the schduler periodically executes the run method of
the MigrationManager.platform - the local migration platform, on which the agents reside.| Method Detail |
|---|
public void modifyBinding(java.lang.Object oldName,
java.lang.Object newName)
Service
modifyBinding in class ServiceoldName - the old name of the agent.newName - the new name of the agent.
public FOS processPer(AgentName agentName,
int perceptionID)
Service
processPer in class ServiceagentName - the agent that wishes to perceive the information.perceptionID - the ID of the information that is to be perceived.
public FOS processAction(AgentName agentName,
int actionID,
FOS data)
processAction in class ServiceagentName - the name of the agent to be added to the outgoing list.actionID - the actionID is not used in this instance of processAction.data - represents the destination and design URL of the agent.
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||