Package edu.tufts.hrilab.action.selector
Class PreconditionPlanningSelector
java.lang.Object
edu.tufts.hrilab.action.selector.ActionSelector
edu.tufts.hrilab.action.selector.PreconditionPlanningSelector
-
Field Summary
Fields inherited from class edu.tufts.hrilab.action.selector.ActionSelector
log
-
Method Summary
Modifier and TypeMethodDescriptionselectActionForGoal
(Goal goal, ActionConstraints constraints, StateMachine stateMachine) the main job of action selectors (subclasses) is to implement this functionMethods inherited from class edu.tufts.hrilab.action.selector.ActionSelector
getCandidateActions, getInstance, selectActionForCommand, setActionSelectorType, setActionSelectorType
-
Method Details
-
selectActionForGoal
public ParameterizedAction selectActionForGoal(Goal goal, ActionConstraints constraints, StateMachine stateMachine) Description copied from class:ActionSelector
the main job of action selectors (subclasses) is to implement this function- Specified by:
selectActionForGoal
in classActionSelector
- Parameters:
goal
- the goal that the selected action should accomplishconstraints
- a returned goal should satisfy any constraintsstateMachine
- in case the action selector cares about the state- Returns:
- an action that accomplishes goal, satisfies constraints
-