Class NotContext

java.lang.Object
edu.tufts.hrilab.action.execution.Context
edu.tufts.hrilab.action.execution.control.NotContext

public class NotContext extends Context
  • Constructor Details

  • Method Details

    • getNextStepForType

      protected Context getNextStepForType()
      Description copied from class: Context
      Get the next step (i.e., context) to be executed. Returns null if there are no more steps. TODO: remove this method
      Overrides:
      getNextStepForType in class Context
      Returns:
    • getLogicalValue

      public boolean getLogicalValue()
      Override default implementation to ignore ActionStatus of NotContext, and only depend on the logical value of the child context.
      Overrides:
      getLogicalValue in class Context
      Returns:
    • copy

      public NotContext copy(Context newParent)
      Description copied from class: Context
      deep copy of the context, its status, and its children
      Specified by:
      copy in class Context
      Parameters:
      newParent - parent to attach the copied context too
      Returns:
      the copied context