Package edu.tufts.hrilab.action.goal
Class GoalInfo
java.lang.Object
edu.tufts.hrilab.action.goal.GoalInfo
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionActor responsible for this goal.longSystem time that goal execution terminated.Justification containing failure reasons.final longUnique goal ID.Goal predicate.booleanIf this goal is a state-base goal (isAction==false) or action-based (isAction==true).Optional metric for task planning.booleanIf true, this goal is wrapped as a persistent goal (i.e., while loop) and executed until failure or cancellation/suspension.longGoal priority.longSystem time that goal execution started.GoalStatus.Goal predicate that can have unbound variables. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
goal
Goal predicate. This predicate can toggle between bound and unbound forms, depending on if the goal execution has been started. If the initial goal predicate has unbound variables, this predicate will contain unbound variables until the GoalContext binds them during the action selection stage of goal execution. If the GoalContext is reset and executed again, this predicate can be rebound to different variable bindings. -
unboundGoal
Goal predicate that can have unbound variables. This goal predicate never changes, and is used to unbind the goal predicate so that a Goal can be reused inside a GoalContext when the context is reset. -
gid
public final long gidUnique goal ID. -
failConditions
Justification containing failure reasons. -
start
public long startSystem time that goal execution started. -
end
public long endSystem time that goal execution terminated. -
status
GoalStatus. -
actor
Actor responsible for this goal. -
isAction
public boolean isActionIf this goal is a state-base goal (isAction==false) or action-based (isAction==true). Action goals map directly onto an existing action, where no top-level task planning is needed. -
metric
Optional metric for task planning. -
persistent
public boolean persistentIf true, this goal is wrapped as a persistent goal (i.e., while loop) and executed until failure or cancellation/suspension. -
priority
public long priorityGoal priority. Used by the ExecutionManager to determine what goals to execute.
-
-
Constructor Details
-
GoalInfo
public GoalInfo(long gid) -
GoalInfo
-