Class ActionContextDescription
java.lang.Object
edu.tufts.hrilab.action.description.ContextDescription
edu.tufts.hrilab.action.description.ActionContextDescription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet ActionDBEntry that this class is describing.Create predicate from the context signature.Get action execution Justification(s) in predicate form.Get overall conditions in predicate form.Get post-conditions in predicate form.Get preconditions in predicate form.Get the top-level steps (i.e., the EventSpecs of the selected actionDBEntry) of this action selection in predicate form.
-
Constructor Details
-
ActionContextDescription
-
-
Method Details
-
getPredicateDescription
- Specified by:
getPredicateDescription
in classContextDescription
-
getAction
Get ActionDBEntry that this class is describing.- Returns:
-
getActionInPredicateForm
Create predicate from the context signature.- Returns:
-
getPreConditionsInPredicateForm
Get preconditions in predicate form.- Returns:
-
getOverallConditionsInPredicateForm
Get overall conditions in predicate form.- Returns:
-
getPostConditionsInPredicateForm
Get post-conditions in predicate form.- Returns:
-
getJustificationInPredicateForm
Get action execution Justification(s) in predicate form.- Returns:
-
getStepsInPredicateForm
Get the top-level steps (i.e., the EventSpecs of the selected actionDBEntry) of this action selection in predicate form. This is currently used by NLG to generate action script narrations (via a getActDesc action script).It's possible that this method shouldn't live here, but should perhaps be moved to a new class for script narration. This is an early-stage implementation of this idea, so it's unclear how this should be architected.
- Specified by:
getStepsInPredicateForm
in classContextDescription
- Returns:
-
getSuccessWithReason
-