Package edu.cmu.tetrad.util
Class TetradLogger.EmptyConfig
java.lang.Object
edu.cmu.tetrad.util.TetradLogger.EmptyConfig
- All Implemented Interfaces:
TetradLoggerConfig
,TetradSerializable
,Serializable
- Enclosing class:
TetradLogger
Represents an empty configuration for the logger. It implements the TetradLoggerConfig interface.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.cmu.tetrad.util.TetradLoggerConfig
TetradLoggerConfig.Event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
isActive.copy()
copy.getSupportedEvents.boolean
isEventActive
(String id) isEventActive.static TetradLogger.EmptyConfig
Generates a simple exemplar of this class to test serialization.void
setEventActive
(String id, boolean active) setEventActive.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.util.TetradLoggerConfig
toString
-
Constructor Details
-
EmptyConfig
public EmptyConfig(boolean active) Constructor for EmptyConfig.
- Parameters:
active
- a boolean
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a simple exemplar of this class to test serialization.
-
isEventActive
isEventActive.
- Specified by:
isEventActive
in interfaceTetradLoggerConfig
- Parameters:
id
- aString
object- Returns:
- a boolean
-
active
public boolean active()isActive.
- Specified by:
active
in interfaceTetradLoggerConfig
- Returns:
- a boolean
-
copy
copy.
- Specified by:
copy
in interfaceTetradLoggerConfig
- Returns:
- a
TetradLoggerConfig
object
-
getSupportedEvents
getSupportedEvents.
- Specified by:
getSupportedEvents
in interfaceTetradLoggerConfig
- Returns:
- a
List
object
-
setEventActive
setEventActive.
- Specified by:
setEventActive
in interfaceTetradLoggerConfig
- Parameters:
id
- aString
objectactive
- a boolean
-