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 TypeMethodDescriptiongetHeldResourcesForGoal(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.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) Methods inherited from class edu.tufts.hrilab.action.manager.ExecutionManager
activateNextValidPendingGoal, activateValidPendingGoals, addAIListener, cancelActionLearning, cancelActionLearning, cancelActiveGoals, cancelCurrentGoals, cancelGoal, cancelPendingGoalByIndex, cancelPendingGoals, cancelPendingGoalsByIndices, cancelScheduledGoals, cancelScheduledGoalsByIndices, cancelSystemGoals, cancelSystemGoals, changeLearningExecution, configPruningMechanism, consumedResources, createInstance, endActionLearning, endActionLearning, endFreeze, executeGoal, forgetTaughtAction, freeze, getActionLearningGuiFlag, getActionStatus, getActiveGoal, getActiveGoal, getActiveGoals, getAgentTeam, getCurrentGoal, getCurrentGoals, getDescendants, getGoal, getGoalFailConditions, getGoalPriority, getGoalPriorityTier, getGoalStatus, getLearnedActions, getLearnedActionsFile, getLearningStatus, getLockedResourceNames, getNextGoal, getNextGoal, getNextScheduledExecutionDate, getPastGoal, getPastGoals, getPendingGoal, getPendingGoals, getRelevantAgents, getResourceConflictingActiveGoals, getRootContext, getScheduledGoal, getScheduledGoals, getScheduledGoals, getStateMachine, getSystemGoals, getSystemGoals, goalStatusChanged, hasGreaterPriority, interruptWaitForLearningStateUpdate, interruptWaitForNextGoalStatusUpdate, isLearnedAction, joinOnGoal, joinOnGoal, joinOnPendingGoal, learnAction, loadLearnedActions, modifyAction, onActiveGoalUpdated, onPendingGoalUpdated, pauseActionLearning, pauseActionLearning, pruneOldData, resourceConflictInPending, resumeActionLearning, resumeActionLearning, resumeGoal, resumeSystemGoals, resumeSystemGoals, setActionLearningGuiFlag, setGoalManagerNotifier, setLearnedActionsFile, setScheduledGoalsFile, shouldSupersede, shutdown, submitGoal, submitGoalContext, supersedeGoals, suspendGoal, suspendSystemGoals, suspendSystemGoals, transferGoalToActive, transferGoalToPastGoals, updateScheduledGoal, waitForActionLearningStart, waitForGoalStatus, waitForLearningStateUpdate, waitForNextGoalStatusUpdate, waitForNextGoalStatusUpdate, waitForNextGoalStatusUpdate, writeScheduledGoalsToFile
-
Constructor Details
-
QueueExecutionManager
public QueueExecutionManager()
-
-
Method Details
-
init
- Overrides:
initin classExecutionManager
-
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
-