com.agentfactory.cldc.name_service
Class UpdateNameActuator
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
com.agentfactory.cldc.name_service.UpdateNameActuator
public class UpdateNameActuator
- extends Actuator
The update name acuator is used to update an agent name with
a unique values. So for instance, if the agent's name was Bob and
the unique value was 1, the agent's name would be updated to Bob1.
- 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 |
UpdateNameActuator
public UpdateNameActuator(AffectManager manager)
- Creates a new instance of UpdateNameActuator
- Parameters:
manager - the affect manager for 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.