ubiware.core.behaviors.creation
Class AbstractDefaultAgentCreationBehavior
java.lang.Object
ubiware.core.ReusableAtomicBehavior
ubiware.core.behaviors.creation.AbstractAgentCreationBehavior
ubiware.core.behaviors.creation.AbstractDefaultAgentCreationBehavior
- All Implemented Interfaces:
- ParametrizedAsset
- Direct Known Subclasses:
- CreateAIABehavior, CreateAWABehavior, CreateInfraAgentBehavior, CreatePUABehavior, CreateSlaveBehavior
public abstract class AbstractDefaultAgentCreationBehavior
- extends AbstractAgentCreationBehavior
|
Method Summary |
protected ubiware.util.saplbuilder.SaplDocument |
getAgentInitialBeliefs()
|
protected ubiware.util.saplbuilder.Resource |
getAgentName()
|
protected java.util.Set<java.lang.String> |
getAgentRoles()
|
protected java.util.Set<java.lang.String> |
getAgentScripts()
|
protected abstract ubiware.util.saplbuilder.Resource |
getNewAgentName()
Implemented by subclasses providing a new name if needed by the behavior. |
protected void |
initializeRAB(BehaviorStartParameters parameters)
Derived RAB's should implement this method and initialise all the needed parameters to run the RAB. |
| 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 |
AbstractDefaultAgentCreationBehavior
public AbstractDefaultAgentCreationBehavior()
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.
- Overrides:
initializeRAB in class AbstractAgentCreationBehavior
- Parameters:
parameters - The parameters specified by the user of this RAB.
- Throws:
IllegalParameterConfigurationException - If one of the parameters isn't correctly given.
getNewAgentName
protected abstract ubiware.util.saplbuilder.Resource getNewAgentName()
- Implemented by subclasses providing a new name if needed by the behavior.
- Returns:
getAgentScripts
protected java.util.Set<java.lang.String> getAgentScripts()
- Specified by:
getAgentScripts in class AbstractAgentCreationBehavior
getAgentName
protected final ubiware.util.saplbuilder.Resource getAgentName()
- Specified by:
getAgentName in class AbstractAgentCreationBehavior
getAgentRoles
protected final java.util.Set<java.lang.String> getAgentRoles()
- Overrides:
getAgentRoles in class AbstractAgentCreationBehavior
getAgentInitialBeliefs
protected final ubiware.util.saplbuilder.SaplDocument getAgentInitialBeliefs()
- Overrides:
getAgentInitialBeliefs in class AbstractAgentCreationBehavior