Interface Stateful


public interface Stateful
Commands that implement the stateful interface manipulate the state of the world and the robots in it
  • Method Summary

    Modifier and Type
    Method
    Description
    verify(World world)
    Verify if a command is able to be executed given the current state of the robot.
  • Method Details

    • verify

      Status verify(World world) throws Exception
      Verify if a command is able to be executed given the current state of the robot. THIS METHOD INDUCES THE SIDE EFFECT OF CHANGING THE Status OF THE ROBOT, updating it's Status if needed.
      Parameters:
      world - the world that this command is being verified against.
      Returns:
      the status of the robot executing the command.
      Throws:
      Exception