Package jmri.jmrix.rps
Class PollingFile
java.lang.Object
jmri.jmrit.XmlFile
jmri.jmrix.rps.PollingFile
Persist RPS polling information.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate -
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.jdom2.Document(package private) org.jdom2.ElementFields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringvoidvoidgetTransmitters(Engine engine) Get the transmitters from the file.voidRead in the file, and make available for examination.voidprepare()Initialize for writing information.voidsetPoll()voidsetTransmitter(int r) voidMethods 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 Details
-
Constructor Details
-
PollingFile
public PollingFile()
-
-
Method Details
-
prepare
Initialize for writing information.This is followed by multiple "set" calls, then a "store"
-
setPoll
-
setTransmitter
-
store
- Throws:
IOException
-
loadFile
Read in the file, and make available for examination.- Parameters:
f- the file to load.- Throws:
org.jdom2.JDOMException- other errors.IOException- error accessing file.
-
getPollValues
-
getTransmitters
Get the transmitters from the file.- Parameters:
engine- a single engine.
-
defaultLocation
-
defaultFilename
-