com.agentfactory.cldc
Class AdoptActuator

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

public class AdoptActuator
extends Actuator

The adopt actuator is used when an agent wishes to adopt a belief. The belief will be present on the subsequent iteration of the control algorithm. The trigger for the actuator is adoptBelief(?belief). The ?belief variable represents the belief to be adopted.

Author:
Conor Muldoon

Constructor Summary
AdoptActuator(AffectManager manager)
          Constructs an AdoptActuator using the specified manager.
 
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

AdoptActuator

public AdoptActuator(AffectManager manager)
Constructs an AdoptActuator using the specified manager. The manager is passed to the super Actuator constructor along with the first order structure identifier for the AdoptActuator. The identifier is adoptBelief(?belief)

Parameters:
manager - the specified manager.
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.