vs.plotagent.behaviour
Class InitiateRequestSelectActionBehaviour

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.InitiateRequestSelectActionBehaviour
All Implemented Interfaces:
java.io.Serializable

public class InitiateRequestSelectActionBehaviour
extends jade.proto.AchieveREInitiator

Behaviour for asking all Character Agents to select the next action to perform NOTE: this might have to be changed to a behaviour that asks a GIVEN character agent to select an Action.

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
InitiateRequestSelectActionBehaviour(jade.core.Agent a, jade.core.AID character)
           
 
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

InitiateRequestSelectActionBehaviour

public InitiateRequestSelectActionBehaviour(jade.core.Agent a,
                                            jade.core.AID character)
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