com.agentfactory.cldc.mts
Class InformActuator
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
com.agentfactory.cldc.mts.InformActuator
public class InformActuator
- extends Actuator
The inform actuator is used to send inform messages. The trigger
for the actuator is inform(?agent,?content). The ?agent variable
represents the name of the agent that the message is to be sent to. The
?content variable represents the content of the message.
- 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 |
InformActuator
public InformActuator(AffectManager manager)
- Creates and instance of InformActuator.
- Parameters:
manager - the affect manager of the agent.
InformActuator
public InformActuator(AffectManager manager,
java.lang.String s)
- Creates an instance of the inform actuator using the
specified affect manager and trigger.
- Parameters:
manager - the affect manager of the agent.s - a string representation of the trigger of the actuator.
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.