ibspan.tss.agents.rsa.handlers
Class GetRestaurantsDetailsHandler
java.lang.Object
jade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
jade.core.behaviours.OneShotBehaviour
ibspan.tss.messaging.RequestHandler
ibspan.tss.agents.rsa.handlers.GetRestaurantsDetailsHandler
- All Implemented Interfaces:
- Serializable
public class GetRestaurantsDetailsHandler
- extends RequestHandler
- Author:
- Maciej Gawinecki
- See Also:
RestaurantServiceAgent
,
Serialized Form
Methods inherited from class jade.core.behaviours.Behaviour |
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, getParent, handle, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myAgent
protected RestaurantServiceAgent myAgent
GetRestaurantsDetailsHandler
public GetRestaurantsDetailsHandler(Agent a,
DataStore ds,
Object requestKey,
Object actKey,
Object notificationKey)
- Constructs FindRestaurantHandler.
- Parameters:
a
- owner agentds
- data storeactKey
- key for accessing action of user request from local Data StorerequestKey
- key for accessing user request ACL message from local Data
StorenotificationKey
- key, pointing the place in local Data Store, where result of
the Behaviour should put at
prepareResponse
protected final ACLMessage prepareResponse(ACLMessage request,
Action act)
throws FailureException
- Description copied from class:
RequestHandler
- Returns response to the request. Programmers should implenets this method
in order process given request.
- Specified by:
prepareResponse
in class RequestHandler
- Parameters:
request
- is message.act
- is Action
concept extracted previously from
request
object.
- Returns:
- response;
null
means failure.
- Throws:
FailureException