jmri.jmrit.operations.rollingstock
Class RollingStockLogger

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

public class RollingStockLogger
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
RollingStockLogger()
           
 
Method Summary
 void dispose()
           
 void enableCarLogging(boolean enable)
           
 void enableEngineLogging(boolean enable)
           
 String getDirectoryName()
           
 String getFileName()
           
 String getFullLoggerFileName()
           
static RollingStockLogger 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

RollingStockLogger

public RollingStockLogger()
Method Detail

instance

public static RollingStockLogger instance()

enableCarLogging

public void enableCarLogging(boolean enable)

enableEngineLogging

public void enableEngineLogging(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