com.agentfactory.cldc.p2pmig
Class DualMigrate

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

public class DualMigrate
extends Actuator

This actuator is used in situations when both the standard migration service and peer to peer migration service are in operation. To indicate that the agent is to migrate using the peer to peer service, the functor of the first argument of the trigger must be p2p, otherwish the standard service will be used. The trigger for this actuator is migrate(?destURL,?url). The ?destURL variable represents the destination address that the agent wishs to migrate to. The ?url variable represents the address of where the agent's design can be downloaded. The ?url variable is only used when mutation is supported.

Author:
Conor Muldoon

Constructor Summary
DualMigrate(AffectManager manager)
          Creates a new instance of DualMigrate.
 
Method Summary
 boolean act(FOS fos)
          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

DualMigrate

public DualMigrate(AffectManager manager)
Creates a new instance of DualMigrate.

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

act

public boolean act(FOS fos)
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:
fos - the applied first order stucture, which matches with the identifier for the Actuator or Action.
Returns:
true if the action was successful, false otherwise.