Class KernelConfig

All Implemented Interfaces:
Cloneable, Configuration, EventSource, FileBasedConfiguration, ImmutableConfiguration, FileBased, FileLocatorAware, SynchronizerSupport

public class KernelConfig extends PropertiesConfiguration
The `KernelConfig` class extends `PropertiesConfiguration` to provide additional configuration capabilities specific to the MaDKit kernel.

This class allows retrieving logging levels and adding properties from an object's fields.

  • Constructor Details

    • KernelConfig

      public KernelConfig()
  • Method Details

    • getLevel

      public Level getLevel(String key)
      Retrieves the logging level associated with the specified key.
      Parameters:
      key - the key for which to retrieve the logging level
      Returns:
      the logging level associated with the specified key
    • toString

      public String toString()
      Returns a string representation of the configuration.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the configuration
    • addPropertiesFromFields

      public void addPropertiesFromFields(Object o)
      Adds properties to the configuration from the fields of the specified object.
      Parameters:
      o - the object from which to take fields as properties