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

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.CompositeBehaviour
          extended by jade.core.behaviours.SerialBehaviour
              extended by jade.core.behaviours.SequentialBehaviour
                  extended by de.fau.cs.www8.jadeowlcodec.examples.transformationJADEontology2OWLexample.OWLbehaviour.OWLHandleEngagementBehaviour
All Implemented Interfaces:
java.io.Serializable

public class OWLHandleEngagementBehaviour
extends jade.core.behaviours.SequentialBehaviour

Main behaviour for the Requester Agent. First the details of a person to engage are requested to the user. Then a check is performed to verify that the indicated person is not already working for the indicated company Finally, according to the above check, the engagement is requested. This behaviour is executed cyclically.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
 
Field Summary
 jade.core.behaviours.Behaviour queryBehaviour
           
 jade.core.behaviours.Behaviour requestBehaviour
           
 
Fields inherited from class jade.core.behaviours.CompositeBehaviour
currentExecuted
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
OWLHandleEngagementBehaviour(jade.core.Agent myAgent)
           
 
Method Summary
 int onEnd()
           
 void onStart()
           
 void reset()
           
 
Methods inherited from class jade.core.behaviours.SequentialBehaviour
addSubBehaviour, checkTermination, getChildren, getCurrent, removeSubBehaviour, scheduleFirst, scheduleNext, skipNext
 
Methods inherited from class jade.core.behaviours.SerialBehaviour
handle
 
Methods inherited from class jade.core.behaviours.CompositeBehaviour
action, block, done, registerAsChild, resetChildren, restart, setAgent
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, getBehaviourName, getDataStore, getExecutionState, getParent, isRunnable, root, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryBehaviour

public jade.core.behaviours.Behaviour queryBehaviour

requestBehaviour

public jade.core.behaviours.Behaviour requestBehaviour
Constructor Detail

OWLHandleEngagementBehaviour

public OWLHandleEngagementBehaviour(jade.core.Agent myAgent)
Method Detail

onStart

public void onStart()
Overrides:
onStart in class jade.core.behaviours.Behaviour

onEnd

public int onEnd()
Overrides:
onEnd in class jade.core.behaviours.Behaviour

reset

public void reset()
Overrides:
reset in class jade.core.behaviours.CompositeBehaviour


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