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
    • getAgentLogLevel

      public Level getAgentLogLevel()
    • getKernelLogLevel

      public Level getKernelLogLevel()
    • getMadkitLogLevel

      public Level getMadkitLogLevel()
    • isDebug

      public boolean isDebug()
    • isDesktop

      public boolean isDesktop()
    • isHeadless

      public boolean isHeadless()
    • isNetworkEnabled

      public boolean isNetworkEnabled()
    • isNoLog

      public boolean isNoLog()
    • isNoRandomizedFields

      public boolean isNoRandomizedFields()
    • isCreateLogFiles

      public boolean isCreateLogFiles()
    • isAutoStart

      public boolean isAutoStart()
    • getSeed

      public int getSeed()
    • getLogDirectory

      public String getLogDirectory()
    • getAgents

      public List<String> getAgents()
    • getViewers

      public List<String> getViewers()
    • getScheduler

      public String getScheduler()
    • getEnvironment

      public String getEnvironment()
    • getModel

      public String getModel()
    • 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