Class SimpleLog
- java.lang.Object
-
- adams.core.logging.ConsoleLoggingObject
-
- adams.gui.flow.tree.record.enclose.AbstractRecordActorEnclosed
-
- adams.gui.flow.tree.record.enclose.SimpleLog
-
- All Implemented Interfaces:
CleanUpHandler
,Serializable
public class SimpleLog extends AbstractRecordActorEnclosed
Simply logs what actors get enclosed.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME
the file to write the "add" history to .-
Fields inherited from class adams.gui.flow.tree.record.enclose.AbstractRecordActorEnclosed
m_Recorders
-
Fields inherited from class adams.core.logging.ConsoleLoggingObject
m_Logger
-
-
Constructor Summary
Constructors Constructor Description SimpleLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRecord(Tree tree, TreePath[] paths, ActorHandler handler)
Records the enclosing action.boolean
isEnabled(Tree tree)
Returns whether the recording is active.-
Methods inherited from class adams.gui.flow.tree.record.enclose.AbstractRecordActorEnclosed
cleanUp, cleanUpAll, record, recordAll
-
Methods inherited from class adams.core.logging.ConsoleLoggingObject
getLogger, initializeLogger, isLoggingEnabled
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the file to write the "add" history to .- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled(Tree tree)
Returns whether the recording is active.- Specified by:
isEnabled
in classAbstractRecordActorEnclosed
- Parameters:
tree
- the current tree- Returns:
- true if active
-
doRecord
protected void doRecord(Tree tree, TreePath[] paths, ActorHandler handler)
Records the enclosing action.- Specified by:
doRecord
in classAbstractRecordActorEnclosed
- Parameters:
tree
- the contextpaths
- the paths to addhandler
- the handler to enclose the paths with
-
-