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

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

public class OWLHandleEngageBehaviour
extends jade.proto.SimpleAchieveREResponder

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
OWLHandleEngageBehaviour(jade.core.Agent myAgent)
          Constructor for the OWLHandleEngageBehaviour class.
 
Method Summary
 jade.lang.acl.ACLMessage prepareResponse(jade.lang.acl.ACLMessage request)
           
 jade.lang.acl.ACLMessage prepareResultNotification(jade.lang.acl.ACLMessage request, jade.lang.acl.ACLMessage response)
          This method actually handles the engagement action This method implements the FipaRequestResponderBehaviour.Factory interface.
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, 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

OWLHandleEngageBehaviour

public OWLHandleEngageBehaviour(jade.core.Agent myAgent)
Constructor for the OWLHandleEngageBehaviour 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

prepareResultNotification

public jade.lang.acl.ACLMessage prepareResultNotification(jade.lang.acl.ACLMessage request,
                                                          jade.lang.acl.ACLMessage response)
This method actually handles the engagement action This method implements the FipaRequestResponderBehaviour.Factory interface. It will be called within a FipaRequestResponderBehaviour when an engagement action is requested to instantiate a new OWLHandleEngageBehaviour handling the requested action Attention: This is a OWL DL hack! Because we have description logics and no real "action logic" (like pddl,...) a FIPA ACL Request Performative makes no (semantic) sense. Within a FIPA ACL Request Performative, it is determined that an action must be set in the content part, which could not be formulated in OWL DL directly. The workaround described here says that we have an "action description" formulated in the corresponding OWL DL file (e.g. http://faui8b.informatik.uni-erlangen.de/AgentOntologies/employment-ontology.owl). To use this workaround we interpret the content part as an inform that a Person should be engaged/hired.

Overrides:
prepareResultNotification in class jade.proto.SimpleAchieveREResponder
Parameters:
request - The ACL message by means of which the engagement action has been requested
response - the prepared result

prepareResponse

public jade.lang.acl.ACLMessage prepareResponse(jade.lang.acl.ACLMessage request)
Overrides:
prepareResponse in class jade.proto.SimpleAchieveREResponder


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