de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample.JADEbehaviours
Class HandleEngagementQueriesBehaviour

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.proto.SimpleAchieveREResponder
              extended by de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample.JADEbehaviours.HandleEngagementQueriesBehaviour
All Implemented Interfaces:
jade.domain.FIPANames.InteractionProtocol, java.io.Serializable

public class HandleEngagementQueriesBehaviour
extends jade.proto.SimpleAchieveREResponder

This behaviour handles all queries about people working for a company following the FIPA-Query protocol

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
 
Field Summary
 
Fields inherited from class jade.proto.SimpleAchieveREResponder
REQUEST_KEY, RESPONSE_KEY, RESULT_NOTIFICATION_KEY
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Fields inherited from interface jade.domain.FIPANames.InteractionProtocol
FIPA_BROKERING, FIPA_CONTRACT_NET, FIPA_DUTCH_AUCTION, FIPA_ENGLISH_AUCTION, FIPA_ITERATED_CONTRACT_NET, FIPA_PROPOSE, FIPA_QUERY, FIPA_RECRUITING, FIPA_REQUEST, FIPA_REQUEST_WHEN, FIPA_SUBSCRIBE, ITERATED_FIPA_REQUEST
 
Constructor Summary
HandleEngagementQueriesBehaviour(jade.core.Agent myAgent)
          Constructor for the OWLHandleEngagementQueriesBehaviour class.
 
Method Summary
 jade.lang.acl.ACLMessage prepareResponse(jade.lang.acl.ACLMessage msg)
          This method is called when a QUERY-IF or QUERY-REF message is received.
 
Methods inherited from class jade.proto.SimpleAchieveREResponder
action, createMessageTemplate, done, prepareResultNotification, reset, 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

HandleEngagementQueriesBehaviour

public HandleEngagementQueriesBehaviour(jade.core.Agent myAgent)
Constructor for the OWLHandleEngagementQueriesBehaviour class.

Parameters:
myAgent - The agent owning this behaviour
Method Detail

prepareResponse

public jade.lang.acl.ACLMessage prepareResponse(jade.lang.acl.ACLMessage msg)
This method is called when a QUERY-IF or QUERY-REF message is received.

Overrides:
prepareResponse in class jade.proto.SimpleAchieveREResponder
Parameters:
msg - The received query message
Returns:
The ACL message to be sent back as reply see jade.proto.FipaQueryResponderBehaviour


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg