jmri.jmrit.operations.trains
Class TrainLogger

java.lang.Object
  extended by jmri.jmrit.XmlFile
      extended by jmri.jmrit.operations.trains.TrainLogger
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class TrainLogger
extends XmlFile
implements PropertyChangeListener

Logs rolling stock movements by writing their locations to a file.

Author:
Daniel Boudreau Copyright (C) 2010

Field Summary
 
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
 
Constructor Summary
TrainLogger()
           
 
Method Summary
 void dispose()
           
 void enableTrainLogging(boolean enable)
           
 String getDirectoryName()
           
 String getFileName()
           
 String getFullLoggerFileName()
           
static TrainLogger instance()
           
 void propertyChange(PropertyChangeEvent e)
           
 void setDirectoryName(String name)
           
 
Methods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, ensurePrefsPresent, findFile, getBuilder, getRootViaURI, getVerify, makeBackupFile, makeBackupFile, newDocument, newDocument, prefsDir, reportError1, reportError2, resourcesDir, revertBackupFile, rootFromFile, rootFromName, rootFromURL, scriptsDir, setScriptsFileLocationDefault, setUserFileLocationDefault, setVerify, userFileChooser, userFileChooser, userFileChooser, userFileChooser, userFileLocationDefault, writeXML, xmlDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrainLogger

public TrainLogger()
Method Detail

instance

public static TrainLogger instance()

enableTrainLogging

public void enableTrainLogging(boolean enable)

dispose

public void dispose()

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

getFullLoggerFileName

public String getFullLoggerFileName()

getDirectoryName

public String getDirectoryName()

setDirectoryName

public void setDirectoryName(String name)

getFileName

public String getFileName()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads