Class CommandManager

java.lang.Object
commandManager.CommandManager

public class CommandManager extends Object
Command Manager for interactive collection manage. For execute commands, use CommandExecutor class
Since:
1.0
See Also:
  • Constructor Details

    • CommandManager

      public CommandManager()
      Setup command manager and all of its commands.
    • CommandManager

      public CommandManager(CommandMode mode, Scanner scanner)
      Constructor provides choice of commands behavior: ex. userMode or nonUserMode
      Parameters:
      mode - Mode for CommandHandler
      scanner - Commands scanner
      Since:
      1.1
      See Also:
  • Method Details

    • getCommands

      public LinkedHashMap<String,BaseCommand> getCommands()
      Get all commands from manager.
      Returns:
      Map of loaded commands
    • executeCommand

      public void executeCommand(String[] args)
      Universe method for command executing.
      Parameters:
      args - full separated line from stream