com.agentfactory.cldc.name_service
Class RegisterAgentActuator

java.lang.Object
  extended by com.agentfactory.cldc.logic.Action
      extended by com.agentfactory.cldc.Actuator
          extended by com.agentfactory.cldc.name_service.RegisterAgentActuator

public class RegisterAgentActuator
extends Actuator

Registers the agent with the message server. The trigger for this actuator is registerAgent. Agents must register with the message server when their name has been appended with a unique value so as to enable messages to be forwarded appropriately.

Author:
Conor Muldoon

Constructor Summary
RegisterAgentActuator(AffectManager manager)
          Creates a new instance of RegisterAgentActuator.
 
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

RegisterAgentActuator

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

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.