com.agentfactory.cldc.p2pmig
Class UpdateServ

java.lang.Object
  extended by com.agentfactory.cldc.logic.Action
      extended by com.agentfactory.cldc.Actuator
          extended by com.agentfactory.cldc.p2pmig.UpdateServ

public class UpdateServ
extends Actuator

The update server actuator is used for updating the discover server when an agent migrates to a new platform. The trigger for the update server actuator is updateServer(?url,?targetPlat,?name), where the ?url variable represents the address of the discovery server, the ?targetPlat variable represents the name of the target platform the agent is migrating to, and the ?name variable represents the name of the agent.

Author:
Conor Muldoon

Constructor Summary
UpdateServ(AffectManager manager)
          Creates an instance of UpdateServ.
 
Method Summary
 boolean act(FOS action)
          The act method is implemented by concrete classes of Action.
 
Methods inherited from class com.agentfactory.cldc.Actuator
adoptBelief, adoptBelief, register, retractBelief
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateServ

public UpdateServ(AffectManager manager)
Creates an instance of UpdateServ.

Parameters:
manager - the affect manager for the agent.
Method Detail

act

public boolean act(FOS action)
Description copied from class: Action
The act method is implemented by concrete classes of Action. It provides the imperative functionality of the action.

Specified by:
act in class Action
Parameters:
action - the applied first order stucture, which matches with the identifier for the Actuator or Action.
Returns:
true if the action was successful, false otherwise.