Class CommandSplitter

java.lang.Object
za.co.wethinkcode.robots.client.commands.CommandSplitter

public class CommandSplitter extends Object
Utility for splitting a command
  • Constructor Details

    • CommandSplitter

      public CommandSplitter(String[] args)
    • CommandSplitter

      public CommandSplitter(String userInput) throws ParsingFailedException
      Standard Constructor for a commandSplitter. smartly splits for a target.
      Parameters:
      userInput - the user's input
      Throws:
      ParsingFailedException
  • Method Details

    • getCommandName

      public String getCommandName()
      Getter for the commandName
      Returns:
      the name of the command
    • getRobotName

      public String getRobotName()
      Getter for a robot name (typically for launch
      Returns:
    • getCommandArgs

      public String[] getCommandArgs()
      Getter for the split commands
      Returns:
      the args as a string