Package moa.options

Class AbstractOptionHandler

    • Constructor Detail

      • AbstractOptionHandler

        public AbstractOptionHandler()
    • Method Detail

      • getPurposeString

        public String getPurposeString()
        Dictionary with option texts and objects
        Specified by:
        getPurposeString in interface OptionHandler
        Returns:
        the string with the purpose of this object
      • prepareForUse

        public void prepareForUse​(TaskMonitor monitor,
                                  ObjectRepository repository)
        Description copied from interface: OptionHandler
        This method prepares this object for use.
        Specified by:
        prepareForUse in interface OptionHandler
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
      • prepareForUseImpl

        protected abstract void prepareForUseImpl​(TaskMonitor monitor,
                                                  ObjectRepository repository)
        This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implement prepareForUseImpl and not prepareForUse since prepareForUse calls prepareForUseImpl.
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
      • getCLICreationString

        public String getCLICreationString​(Class<?> expectedType)
        Description copied from interface: OptionHandler
        Gets the Command Line Interface text to create the object
        Specified by:
        getCLICreationString in interface OptionHandler
        Returns:
        the Command Line Interface text to create the object
      • prepareClassOptions

        protected void prepareClassOptions​(TaskMonitor monitor,
                                           ObjectRepository repository)
        Prepares the options of this class.
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
      • getPreparedClassOption

        protected Object getPreparedClassOption​(ClassOption opt)
        Gets a prepared option of this class.
        Parameters:
        opt - the class option to get
        Returns:
        an option stored in the dictionary