com.agentfactory.cldc.p2pmts
Class LookupYP
java.lang.Object
com.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
com.agentfactory.cldc.p2pmts.LookupYP
public class LookupYP
- extends Actuator
The lookup yellow pages actuator is when an agent wishes to obtain
the name and address of an agent that performs a particular service.
The trigger for the lookup yellow pages actuator is
lookupYP(?discURL,?service), where the ?discURL variable represents the
address of the discovery server and the ?service variable represents the
type of service. The agent adopts the belief yellowPages(?server,?agt,?addr)
once the name and address of an agent that provides the service has
been obtained.
- 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 |
LookupYP
public LookupYP(AffectManager manager)
- Creates an instance of LookupYP.
- 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.