Class Action


  • public class Action
    extends java.lang.Object
    The Action class represents an action taken by a BadgerBot, including the context of the method, the result of the method, and the state of the bot after the action.
    • Constructor Summary

      Constructors 
      Constructor Description
      Action​(java.lang.String methodContext, java.lang.String methodResult, java.lang.String state)
      Constructs an Action with the specified method context, method result, and state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Returns a string representation of the Action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Action

        public Action​(java.lang.String methodContext,
                      java.lang.String methodResult,
                      java.lang.String state)
        Constructs an Action with the specified method context, method result, and state.
        Parameters:
        methodContext - the context of the method that was executed
        methodResult - the result of the method execution
        state - the state of the object after the method execution
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the Action. The format is: "methodContext [state] methodResult".
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representing the Action