ibspan.tss.agents.pma.handlers
Class InitUserProfileHandler

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.OneShotBehaviour
              extended by ibspan.tss.messaging.RequestHandler
                  extended by ibspan.tss.agents.pma.handlers.InitUserProfileHandler
All Implemented Interfaces:
Serializable

public class InitUserProfileHandler
extends RequestHandler

Author:
Maciej Gawinecki
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
Behaviour.RunnableChangedEvent
 
Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
InitUserProfileHandler(Agent a, DataStore ds, Object requestKey, Object actKey, Object notificationKey)
           
 
Method Summary
protected  ACLMessage prepareResponse(ACLMessage request, Action act)
          Returns response to the request.
 
Methods inherited from class ibspan.tss.messaging.RequestHandler
action
 
Methods inherited from class jade.core.behaviours.OneShotBehaviour
done
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
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
 

Constructor Detail

InitUserProfileHandler

public InitUserProfileHandler(Agent a,
                              DataStore ds,
                              Object requestKey,
                              Object actKey,
                              Object notificationKey)
Method Detail

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