jmri.jmrix.rps
Class PollingFile

java.lang.Object
  extended by jmri.jmrit.XmlFile
      extended by jmri.jmrix.rps.PollingFile

public class PollingFile
extends XmlFile

Persist RPS polling information

Author:
Bob Jacobsen Copyright 2008

Field Summary
 
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
 
Constructor Summary
PollingFile()
           
 
Method Summary
static String defaultFilename()
           
static String defaultLocation()
           
 void getPollValues()
           
 void getTransmitters(Engine engine)
          Get the transmitters from the file
 void loadFile(File f)
          Read in the file, and make available for examination
 void prepare()
          Initialize for writing information.
 void setPoll()
           
 void setTransmitter(int r)
           
 void store(File file)
           
 
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

PollingFile

public PollingFile()
Method Detail

prepare

public void prepare()
Initialize for writing information.

This is followed by multiple "set" calls, then a "store"


setPoll

public void setPoll()

setTransmitter

public void setTransmitter(int r)

store

public void store(File file)
           throws IOException
Throws:
IOException

loadFile

public void loadFile(File f)
              throws JDOMException,
                     IOException
Read in the file, and make available for examination

Throws:
JDOMException
IOException

getPollValues

public void getPollValues()

getTransmitters

public void getTransmitters(Engine engine)
Get the transmitters from the file


defaultLocation

public static String defaultLocation()

defaultFilename

public static String defaultFilename()


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