Class WekaClassDescriptionGenerator

  • All Implemented Interfaces:
    adams.core.logging.LoggingSupporter, adams.core.option.description.ClassDescriptionGenerator, adams.core.SizeOfHandler, Serializable

    public class WekaClassDescriptionGenerator
    extends adams.core.option.description.AbstractClassDescriptionGenerator
    Generates descriptions for WEKA option handlers.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.core.option.description.AbstractClassDescriptionGenerator

        m_Cache, m_GeneratorClasses
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
      • Fields inherited from interface adams.core.option.description.ClassDescriptionGenerator

        KEY_CLASS, KEY_OPTIONS
    • Constructor Detail

      • WekaClassDescriptionGenerator

        public WekaClassDescriptionGenerator()
    • Method Detail

      • handles

        public boolean handles​(Class cls)
        Checks whether this class is handled by this generator.
        Parameters:
        cls - the class to check
        Returns:
        true if handled
      • toString

        protected String toString​(PropertyDescriptor descriptor,
                                  Class baseClass,
                                  Object obj)
        Turns the object into a string.
        Parameters:
        descriptor - the current property descriptor
        baseClass - the base class
        obj - the object itself
        Returns:
        the string representation
      • generate

        public Map<String,​Object> generate​(Object obj)
        Generates the description for the object.
        Parameters:
        obj - the object to process
        Returns:
        the description, null if failed to generate