Package edu.tufts.hrilab.action.manager
Class QueueExecutionManager
java.lang.Object
edu.tufts.hrilab.action.manager.ExecutionManager
edu.tufts.hrilab.action.manager.QueueExecutionManager
- All Implemented Interfaces:
GoalListener
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.tufts.hrilab.action.manager.ExecutionManager
ExecutionManager.UpdateType -
Field Summary
Fields inherited from class edu.tufts.hrilab.action.manager.ExecutionManager
agentHierarchy, agentTeams, goalComparator, goalsLock, pendingGoals, pendingGoalsLock, resourceLock, rootAgent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelSystemGoals(Symbol actor) getHeldResourcesForGoal(Goal goal) Returns the set of all Resources that will be held by the supplied goal during its execution.Returns the set of all Resources required to be available during execution of the supplied goal.getSystemGoalsPredicates(Symbol actor) protected voidDetermines what is done to an added pending goal when resources are not available to execute the action.protected voidinit(StateMachine sm, RootContext rootContext, Collection<String> groups) protected voidonActiveGoalUpdated(Goal g, GoalStatus status, ExecutionManager.UpdateType updateType) Callback triggered when an active goal's status has been updated.resumeSystemGoals(Symbol actor) suspendSystemGoals(Symbol actor) Methods inherited from class edu.tufts.hrilab.action.manager.ExecutionManager
activateNextValidPendingGoal, activateValidPendingGoals, addAIListener, cancelActionLearning, cancelAllActiveGoals, cancelAllCurrentGoals, cancelAllPendingGoals, cancelGoal, cancelPendingGoalByIndex, changeLearningExecution, checkIgnoreTentativeAccept, configPruningMechanism, consumedResources, createInstance, endActionLearning, endFreeze, executeGoal, freeze, getActionLearningGuiFlag, getActionStatus, getActiveGoal, getActiveGoal, getActiveGoals, getActiveGoals, getAgentTeam, getAllGoals, getCurrentGoal, getCurrentGoals, getCurrentGoals, getDescendants, getGoal, getGoalFailConditions, getGoalStatus, getLearningStatus, getLockedResourceNames, getNextGoalPredicate, getNextGoalPredicate, getPastGoal, getPastGoals, getPastGoals, getPendingGoal, getPendingGoals, getPendingGoalsPredicates, getRelevantAgents, getResourceConflictingActiveGoals, getRootContext, getStateMachine, getSystemGoalsPredicates, goalStatusChanged, joinOnGoal, joinOnGoal, joinOnPendingGoal, learnAction, modifyAction, onPendingGoalUpdated, pauseActionLearning, pruneOldData, resourceConflictInPending, resumeActionLearning, resumeGoal, setActionLearningGuiFlag, shouldSupersede, shutdown, submitGoal, submitGoalContext, supersedeGoals, suspendGoal, transferGoalToActive, transferGoalToPastGoals, waitForActionLearningStart, waitForGoalStatus
-
Constructor Details
-
QueueExecutionManager
public QueueExecutionManager()
-
-
Method Details
-
init
- Overrides:
initin classExecutionManager
-
onActiveGoalUpdated
protected void onActiveGoalUpdated(Goal g, GoalStatus status, ExecutionManager.UpdateType updateType) Description copied from class:ExecutionManagerCallback triggered when an active goal's status has been updated.- Overrides:
onActiveGoalUpdatedin classExecutionManager- Parameters:
g- the goal whose status has been updatedstatus- the new statusupdateType- indicates whether the active goal was newly added, already existed, or removed
-
handleConflictingLowerPriorityGoal
Description copied from class:ExecutionManagerDetermines what is done to an added pending goal when resources are not available to execute the action.- Overrides:
handleConflictingLowerPriorityGoalin classExecutionManager- Parameters:
g- the goal that was added
-
getRequiredResourcesForGoal
Description copied from class:ExecutionManagerReturns the set of all Resources required to be available during execution of the supplied goal.- Overrides:
getRequiredResourcesForGoalin classExecutionManager
-
getHeldResourcesForGoal
Description copied from class:ExecutionManagerReturns the set of all Resources that will be held by the supplied goal during its execution.- Overrides:
getHeldResourcesForGoalin classExecutionManager
-
cancelAllSystemGoals
public void cancelAllSystemGoals() -
cancelSystemGoals
-
suspendSystemGoals
-
resumeSystemGoals
-
getSystemGoalsPredicates
- Overrides:
getSystemGoalsPredicatesin classExecutionManager
-