de.fau.cs.www8.jadeowlcodec.examples.OWLEngageexample
Class ExampleReceiverBehaviour

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.CyclicBehaviour
              extended by de.fau.cs.www8.jadeowlcodec.examples.OWLEngageexample.ExampleReceiverBehaviour
All Implemented Interfaces:
java.io.Serializable

public class ExampleReceiverBehaviour
extends jade.core.behaviours.CyclicBehaviour

an example demonstrating how behaviours might receive messages with the OWLCodec

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
 
Field Summary
protected  jade.lang.acl.MessageTemplate template
           
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ExampleReceiverBehaviour(KnowledgeBase kb)
           
 
Method Summary
 void action()
           
protected  void runBehaviour()
           
protected  void 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.core.behaviours.CyclicBehaviour
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
 

Field Detail

template

protected jade.lang.acl.MessageTemplate template
Constructor Detail

ExampleReceiverBehaviour

public ExampleReceiverBehaviour(KnowledgeBase kb)
Method Detail

runBehaviour

protected void runBehaviour()

sendNotUnderstood

protected final void 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

action

public void action()
Specified by:
action in class jade.core.behaviours.Behaviour


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