Package jade

Class BootHelper


  • public class BootHelper
    extends Object
    This class provides a number of methods that help in parsing the command line. It is also used by the StartNewAgent class of the RMA.
    Version:
    $Date$ $Revision$
    • Constructor Detail

      • BootHelper

        public BootHelper()
    • Method Detail

      • T2

        public Vector T2​(String s1,
                         boolean keepquote)
        Reads the passed String and decompose it into a vector of Strings. Each String is a token of type agentName: or className( or argument This method is declared public because it is currently used by jade.tools.rma.StartNewAgentAction
        Parameters:
        s1 - The source string.
        keepquote - when true no char is removed, apart from blanks between tokens. when false, quote chars are removed and also escaped quotes become just quotes.
        Returns:
        The vector of strings.
      • getCommandLineAgentSpecifiers

        public Enumeration getCommandLineAgentSpecifiers​(Vector args)
        parse an array of Strings and return an Iterator of Specifier This method is declared public because it is currently used by jade.tools.rma.StartNewAgentAction
        Parameters:
        args - is an array of string of agent specifiers of the type "name:class(arguments)"
        Returns:
        an Iterator over a List of Specifier
      • getAgentArgument

        public boolean getAgentArgument​(String arg,
                                        List as)
        Parameters:
        arg - is the argument passed on the command line
        as - is the List where arguments must be added
        Returns:
        true if this was the last argument, i.e. it found a closed bracket