|
Nested classes/interfaces inherited from class sajas.core.behaviours.Behaviour |
Behaviour.RunnableChangedEvent |
Field Summary | ||
static int |
SELECTION_NOK Value returned by onEnd method if no handler was found mapped to the key |
|
static int |
SELECTION_OK Value returned by onEnd method if an handler was found mapped to the key |
Fields inherited from class sajas.core.behaviours.FSMBehaviour |
currentName, lastStates |
Fields inherited from class sajas.core.behaviours.CompositeBehaviour |
currentExecuted |
Fields inherited from class sajas.core.behaviours.Behaviour |
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING |
Constructor Summary | ||
HandlerSelector(Agent a, DataStore s, Object accessKey) Constructor for this HandlerSelector. |
Method Summary | ||
protected abstract Object |
getSelectionKey(Object selectionVar) Subclasses must provide a concrete implementation for this method. |
|
void |
registerHandler(Object key, Behaviour h) Register the bounding between an handler and a key. |
Methods inherited from class sajas.core.behaviours.SerialBehaviour |
handle |
Methods inherited from class sajas.core.behaviours.CompositeBehaviour |
action, done, handleBlockEvent, handleRestartEvent, registerAsChild, resetChildren, setAgent |
Methods inherited from class sajas.core.behaviours.Behaviour |
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, isRunnable, onStart, restart, root, setBehaviourName, setDataStore, setExecutionState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onEnd
method if
no handler was found mapped to the keyonEnd
method if
an handler was found mapped to the keygetSelectionKey
accessKey
passed in the constructorgetSelectionKey
when the passed
Behaviour must be selected
|