com.agentfactory.cldc.p2pmts
Class P2PRequest
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
com.agentfactory.cldc.p2pmts.P2PRequest
public class P2PRequest
- extends Actuator
This actuator enables an agent to make a request to another agent using the
peer to peer message transport service.
The trigger for the actuator is request(?agent,?content). The ?agent
variable represents the agent to whom the request is being made. The ?content
variable represents the information content of the request.
- 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 |
P2PRequest
public P2PRequest(AffectManager manager)
- Parameters:
manager -
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.