Class ActionContextDescription

java.lang.Object
edu.tufts.hrilab.action.description.ContextDescription
edu.tufts.hrilab.action.description.ActionContextDescription

public class ActionContextDescription extends ContextDescription
  • Constructor Details

    • ActionContextDescription

      public ActionContextDescription(ActionContext context)
  • Method Details

    • getPredicateDescription

      public List<Predicate> getPredicateDescription()
      Specified by:
      getPredicateDescription in class ContextDescription
    • getAction

      public ActionDBEntry getAction()
      Get ActionDBEntry that this class is describing.
      Returns:
    • getActionInPredicateForm

      public Predicate getActionInPredicateForm()
      Create predicate from the context signature.
      Returns:
    • getPreConditionsInPredicateForm

      public Predicate getPreConditionsInPredicateForm()
      Get preconditions in predicate form.
      Returns:
    • getOverallConditionsInPredicateForm

      public Predicate getOverallConditionsInPredicateForm()
      Get overall conditions in predicate form.
      Returns:
    • getPostConditionsInPredicateForm

      public Predicate getPostConditionsInPredicateForm()
      Get post-conditions in predicate form.
      Returns:
    • getJustificationInPredicateForm

      public Predicate getJustificationInPredicateForm()
      Get action execution Justification(s) in predicate form.
      Returns:
    • getStepsInPredicateForm

      public Predicate 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 class ContextDescription
      Returns:
    • getSuccessWithReason

      public Predicate getSuccessWithReason()