ubiware.core.behaviors.creation
Class AbstractAgentCreationBehavior

java.lang.Object
  extended by ubiware.core.ReusableAtomicBehavior
      extended by ubiware.core.behaviors.creation.AbstractAgentCreationBehavior
All Implemented Interfaces:
ParametrizedAsset
Direct Known Subclasses:
AbstractDefaultAgentCreationBehavior

public abstract class AbstractAgentCreationBehavior
extends ReusableAtomicBehavior


Field Summary
static java.lang.String ZONE_MEMEBEROF
           
 
Fields inherited from class ubiware.core.ReusableAtomicBehavior
finished, myAgent
 
Constructor Summary
AbstractAgentCreationBehavior()
           
 
Method Summary
protected  void doAction()
          Derived RAB's should implement this method and do their action within it.
protected  ubiware.util.saplbuilder.SaplDocument getAgentInitialBeliefs()
           
protected abstract  ubiware.util.saplbuilder.Resource getAgentName()
           
protected  java.util.Set<java.lang.String> getAgentRoles()
           
protected abstract  java.util.Set<java.lang.String> getAgentScripts()
           
protected abstract  java.util.Set<java.lang.String> getAgentZones()
           
protected abstract  PolicyChecker getPolicyChecker(UbiwareAgent newAgent)
           
protected  void informPolicyAgent(java.lang.String content, java.lang.String ontology)
           
protected  void initializeRAB(BehaviorStartParameters parameters)
          Derived RAB's should implement this method and initialise all the needed parameters to run the RAB.
protected  void registerToPolicyAgent()
           
 
Methods inherited from class ubiware.core.ReusableAtomicBehavior
addBeliefs, addBeliefsN3, addBeliefsN3, addBeliefsN3, addCommand, addOnBlackboard, block, block, done, equals, eraseBeliefs, getFromBlackboard, getStatements, getStatements, hasBeenExecuted, hasBeliefs, hasBeliefs, hasBeliefsN3, hasBeliefsN3, hasBeliefsN3, hasBeliefsN3, hashCode, hasSucceededTillNow, moveBeliefs, onRABEnd, print, printError, produceN3, produceN3, produceN3Document, produceN3Document, removeBeliefs, removeBeliefsN3, removeBeliefsN3, removeFromBlackboard, restart, sendMessage, sendMessage, setFailed, setStartParameters, wakeAgent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZONE_MEMEBEROF

public static final java.lang.String ZONE_MEMEBEROF
See Also:
Constant Field Values
Constructor Detail

AbstractAgentCreationBehavior

public AbstractAgentCreationBehavior()
Method Detail

initializeRAB

protected void initializeRAB(BehaviorStartParameters parameters)
                      throws IllegalParameterConfigurationException
Description copied from class: ReusableAtomicBehavior
Derived RAB's should implement this method and initialise all the needed parameters to run the RAB. The supplied parameters object might become invalid after this call.

Specified by:
initializeRAB in class ReusableAtomicBehavior
Parameters:
parameters - The parameters specified by the user of this RAB.
Throws:
IllegalParameterConfigurationException - If one of the parameters isn't correctly given.

doAction

protected final void doAction()
                       throws jade.wrapper.StaleProxyException
Description copied from class: ReusableAtomicBehavior
Derived RAB's should implement this method and do their action within it. The derived RAB can assume that doAction is never called without a successful call to ReusableAtomicBehavior.initializeRAB(BehaviorStartParameters)

Specified by:
doAction in class ReusableAtomicBehavior
Throws:
jade.wrapper.StaleProxyException

registerToPolicyAgent

protected void registerToPolicyAgent()

getAgentZones

protected abstract java.util.Set<java.lang.String> getAgentZones()

getAgentName

protected abstract ubiware.util.saplbuilder.Resource getAgentName()

getAgentScripts

protected abstract java.util.Set<java.lang.String> getAgentScripts()

getAgentRoles

protected java.util.Set<java.lang.String> getAgentRoles()

getAgentInitialBeliefs

protected ubiware.util.saplbuilder.SaplDocument getAgentInitialBeliefs()

getPolicyChecker

protected abstract PolicyChecker getPolicyChecker(UbiwareAgent newAgent)

informPolicyAgent

protected final void informPolicyAgent(java.lang.String content,
                                       java.lang.String ontology)