Package jmri.jmrit.operations.trains
Class TrainLogger
- java.lang.Object
-
- jmri.jmrit.XmlFile
-
- jmri.jmrit.operations.trains.TrainLogger
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,InstanceManagerAutoDefault
public class TrainLogger extends XmlFile implements InstanceManagerAutoDefault, java.beans.PropertyChangeListener
Logs train movements and status to a file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.io.File
_fileLogger
(package private) java.util.ResourceBundle
rb
-
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
-
-
Constructor Summary
Constructors Constructor Description TrainLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
enableTrainLogging(boolean enable)
java.lang.String
getDirectoryName()
java.lang.String
getFileName()
java.lang.String
getFullLoggerFileName()
void
propertyChange(java.beans.PropertyChangeEvent e)
void
setDirectoryName(java.lang.String name)
-
Methods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, findFile, getBuilder, getDefaultDtdLocation, getDefaultValidate, getDtdLocation, getProcessingInstructionHRef, getProcessingInstructionType, getRoot, getValidate, makeBackupFile, makeBackupFile, newDocument, newDocument, revertBackupFile, rootFromFile, rootFromInputStream, rootFromName, rootFromURL, setDefaultDtdLocation, setDefaultValidate, setDtdLocation, setValidate, userFileChooser, userFileChooser, writeXML, xmlDir
-
-
-
-
Field Detail
-
_fileLogger
java.io.File _fileLogger
-
rb
java.util.ResourceBundle rb
-
-
Constructor Detail
-
TrainLogger
public TrainLogger()
-
-
Method Detail
-
enableTrainLogging
public void enableTrainLogging(boolean enable)
-
dispose
public void dispose()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getFullLoggerFileName
public java.lang.String getFullLoggerFileName()
-
getDirectoryName
public java.lang.String getDirectoryName()
-
setDirectoryName
public void setDirectoryName(java.lang.String name)
-
getFileName
public java.lang.String getFileName()
-
-