com.agentfactory.cldc.p2pmts
Class P2PInform
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
com.agentfactory.cldc.p2pmts.P2PInform
public class P2PInform
- extends Actuator
The peer to peer inform actuator is used to send inform messages using the peer to
peer message transport protocol. 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
|
Constructor Summary |
P2PInform(AffectManager manager)
Creates and instance of InformActuator. |
P2PInform(AffectManager manager,
java.lang.String s)
Creates an instance of the inform actuator using the
specified affect manager and trigger. |
|
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 |
P2PInform
public P2PInform(AffectManager manager)
- Creates and instance of InformActuator.
- Parameters:
manager - the affect manager of the agent.
P2PInform
public P2PInform(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.