Package edu.cmu.tetrad.util
Interface TetradLoggerConfig
- All Superinterfaces:
Serializable
,TetradSerializable
- All Known Implementing Classes:
DefaultTetradLoggerConfig
,TetradLogger.EmptyConfig
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.
- Version:
- $Id: $Id
- Author:
- Tyler Gibson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Represents an event which is just an id and a description. -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
States whether the config is active or not.copy()
Creates a copy of the TetradLoggerConfig object.Retrieves the list of supported events.boolean
isEventActive
(String id) States whether the event associated with the given id is active, that is whether it should be logged or not.void
setEventActive
(String id, boolean active) Sets whether the event associated with the given id is active or not.toString()
Returns a string representation of the object.
-
Method Details
-
isEventActive
-
active
boolean active()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()Retrieves the list of supported events.- Returns:
- the list of supported events
-
setEventActive
-
copy
TetradLoggerConfig copy()Creates a copy of the TetradLoggerConfig object.- Returns:
- a copy of the TetradLoggerConfig object
-
toString
-