com.agentfactory.cldc
Class ValuesActuator
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
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
|
Method Summary |
boolean |
act(FOS action)
The act method is implemented by concrete classes of Action. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValuesActuator
public ValuesActuator(AffectManager manager)
- Creates a new instance of ValuesActuator.
- Parameters:
manager - the affect manager of the agent.
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.