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.
- 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 TypeMethodDescriptioncopy()
boolean
isActive()
States whether the config is active or not.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()
-
Method Details
-
isEventActive
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
Sets whether the event associated with the given id is active or not. -
copy
TetradLoggerConfig copy()- Returns:
- a copy of this configuration.
-
toString
String toString()
-