vs.plotagent.behaviour
Class InitiateRequestGiveControlBehaviour

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.FSMBehaviour
                  extended by jade.proto.AchieveREInitiator
                      extended by vs.plotagent.behaviour.InitiateRequestGiveControlBehaviour
All Implemented Interfaces:
java.io.Serializable

public class InitiateRequestGiveControlBehaviour
extends jade.proto.AchieveREInitiator

Behaviour for asking a World Agent to give control over its world state over to the plot agent in other words, the Plot Agent asks permission to use this World Agent to send its actions and events to.

Author:
swartjes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.proto.AchieveREInitiator
ALL_REQUESTS_KEY, ALL_RESPONSES_KEY, ALL_RESULT_NOTIFICATIONS_KEY, REPLY_KEY, REQUEST_KEY
 
Fields inherited from class jade.core.behaviours.Behaviour
STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
InitiateRequestGiveControlBehaviour(jade.core.Agent a, jade.core.AID newWorldAgent)
           
 
Method Summary
 void onStart()
           
 java.util.Vector prepareRequests(jade.lang.acl.ACLMessage msg)
          Is called right after the constructor, to prepare the message
 void registerHandleFailure(jade.core.behaviours.Behaviour arg0)
           
 void registerHandleNotUnderstood(jade.core.behaviours.Behaviour arg0)
           
 void registerHandleOutOfSequence(jade.core.behaviours.Behaviour arg0)
           
 void reset()
           
 void reset(jade.lang.acl.ACLMessage arg0)
           
 void setDataStore(jade.core.behaviours.DataStore arg0)
           
 
Methods inherited from class jade.proto.AchieveREInitiator
registerHandleAgree, registerHandleAllResponses, registerHandleAllResultNotifications, registerHandleInform, registerHandleRefuse, registerPrepareRequests
 
Methods inherited from class jade.core.behaviours.FSMBehaviour
deregisterState, getChildren, getLastExitValue, getName, getState, onEnd, registerDefaultTransition, registerDefaultTransition, registerFirstState, registerLastState, registerState, registerTransition, registerTransition, resetStates
 
Methods inherited from class jade.core.behaviours.CompositeBehaviour
action, block, done, restart, setAgent
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, getBehaviourName, getDataStore, getExecutionState, isRunnable, root, setBehaviourName, setExecutionState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitiateRequestGiveControlBehaviour

public InitiateRequestGiveControlBehaviour(jade.core.Agent a,
                                           jade.core.AID newWorldAgent)
Method Detail

prepareRequests

public java.util.Vector prepareRequests(jade.lang.acl.ACLMessage msg)
Is called right after the constructor, to prepare the message

Overrides:
prepareRequests in class jade.proto.AchieveREInitiator

registerHandleNotUnderstood

public void registerHandleNotUnderstood(jade.core.behaviours.Behaviour arg0)

registerHandleFailure

public void registerHandleFailure(jade.core.behaviours.Behaviour arg0)

registerHandleOutOfSequence

public void registerHandleOutOfSequence(jade.core.behaviours.Behaviour arg0)

reset

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

reset

public void reset(jade.lang.acl.ACLMessage arg0)

onStart

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

setDataStore

public void setDataStore(jade.core.behaviours.DataStore arg0)
Overrides:
setDataStore in class jade.core.behaviours.Behaviour