de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample.OWLbehaviour
Class OWLHandleEngagementQueriesBehaviour

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.OWLbehaviour.OWLHandleEngagementQueriesBehaviour
All Implemented Interfaces:
jade.domain.FIPANames.InteractionProtocol, java.io.Serializable

public class OWLHandleEngagementQueriesBehaviour
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
OWLHandleEngagementQueriesBehaviour(jade.core.Agent myAgent)
          Constructor for the OWLHandleEngagementQueriesBehaviour class.
 
Method Summary
 jade.lang.acl.ACLMessage prepareResponse(jade.lang.acl.ACLMessage msgi)
          This method is called when a QUERY-IF or QUERY-REF message is received.
protected  jade.lang.acl.ACLMessage sendNotUnderstood(jade.lang.acl.ACLMessage incoming)
          sends a message with performative NOT_UNDERSTOOD as answer to the must be ontology specific
 
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

OWLHandleEngagementQueriesBehaviour

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

Parameters:
myAgent - The agent owning this behaviour
Method Detail

sendNotUnderstood

protected final jade.lang.acl.ACLMessage sendNotUnderstood(jade.lang.acl.ACLMessage incoming)
sends a message with performative NOT_UNDERSTOOD as answer to the must be ontology specific

Parameters:
incoming - the message that was not understood

prepareResponse

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

Overrides:
prepareResponse in class jade.proto.SimpleAchieveREResponder
Parameters:
msgi - 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