Interface TetradLoggerConfig

All Superinterfaces:
Serializable, TetradSerializable
All Known Implementing Classes:
DefaultTetradLoggerConfig, TetradLogger.EmptyConfig

public interface TetradLoggerConfig extends TetradSerializable
Represents the configuration for the logger. The idea is that each model has its own logger configuration, which is merely the events that the model supports.
Author:
Tyler Gibson
  • Method Details

    • isEventActive

      boolean isEventActive(String id)
      States whether the event associated with the given id is active, that is whether it should be logged or not.
    • isActive

      boolean isActive()
      States whether the config is active or not. THe config is considered active if there is at least one active event.
      Returns:
      - true iff its active.
    • getSupportedEvents

      List<TetradLoggerConfig.Event> getSupportedEvents()
      Returns:
      - events
    • setEventActive

      void setEventActive(String id, boolean active)
      Sets whether the event associated with the given id is active or not.
    • copy

      Returns:
      a copy of this configuration.
    • toString

      String toString()
      Overrides:
      toString in class Object
      Returns:
      a string representation.