com.agentfactory.cldc
Class ValuesActuator

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

public class ValuesActuator
extends Actuator

The values actuator is enables the agent to update the benefit and cost values of a commitment. The trigger for the actuator is updateValues(?benefit,?cost,?id). The ?benefit variable represents the new benefit of the commitment. The ?cost variable represents the new cost of the commitment. The ?id variable represents the label of the commitment.

Author:
Conor Muldoon

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

ValuesActuator

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

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