Package adams.env

Class Modules


  • public class Modules
    extends Object
    For managing module information.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the modules.
      • getModules

        public List<Modules.Module> getModules()
        Returns the available modules.
        Returns:
        the modules
      • isAvailable

        public boolean isAvailable​(String name)
        Checks whether the module with the specified name is present.
        Parameters:
        name - the name to check
        Returns:
        true if module present
      • getModule

        public Modules.Module getModule​(String name)
        Returns the module associated with the specified name.
        Parameters:
        name - the name to check
        Returns:
        the module if present, otherwise null
      • getSingleton

        public static Modules getSingleton()
        Returns the singleton.
        Returns:
        the singleton
      • main

        public static void main​(String[] args)
                         throws Exception
        Just outputs the modules on the console, one per line.
        Parameters:
        args - ignored
        Throws:
        Exception - if initialization fails