|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.XmlFile
jmri.jmrix.rps.PositionFile
public class PositionFile
Persist RPS configuration information
| Field Summary |
|---|
| Fields inherited from class jmri.jmrit.XmlFile |
|---|
dtdLocation, xsltLocation |
| Constructor Summary | |
|---|---|
PositionFile()
|
|
| Method Summary | |
|---|---|
static String |
defaultFilename()
|
static String |
defaultLocation()
|
String |
getAlgorithm()
|
Point3d |
getCalibrationPosition(int n)
Get the nth calibration position in the file. |
Reading |
getCalibrationReading(int n)
Get the nth calibration reading in the file. |
int |
getOffset()
|
boolean |
getReceiverActive(int n)
Get the nth receiver active state in the file. |
int |
getReceiverMax(int n)
Get the nth receiver max time. |
int |
getReceiverMin(int n)
Get the nth receiver min time. |
Point3d |
getReceiverPosition(int n)
Get the nth receiver position in the file. |
double |
getVSound()
|
void |
loadFile(File f)
Read in the file, and make available for examination |
int |
maxReceiver()
FInd the highest numbered receiver in the file |
Point3d |
positionFromElement(Element position)
|
void |
prepare()
Initialize for writing information. |
Reading |
readingFromElement(Element reading)
|
void |
setCalibrationPoint(Point3d p,
Reading r)
|
void |
setConstants(double vSound,
int offset,
String algorithm)
|
void |
setReceiver(int n,
Point3d p,
boolean active)
|
void |
setReceiver(int n,
Receiver r)
|
void |
store(File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionFile()
| Method Detail |
|---|
public void prepare()
This is followed by multiple "set" calls, then a "store"
public void setConstants(double vSound,
int offset,
String algorithm)
public void setReceiver(int n,
Receiver r)
public void setReceiver(int n,
Point3d p,
boolean active)
public void setCalibrationPoint(Point3d p,
Reading r)
public Point3d positionFromElement(Element position)
public Reading readingFromElement(Element reading)
public void store(File file)
throws IOException
IOException
public void loadFile(File f)
throws JDOMException,
IOException
JDOMException
IOExceptionpublic double getVSound()
public int getOffset()
public String getAlgorithm()
public int maxReceiver()
public Point3d getReceiverPosition(int n)
public boolean getReceiverActive(int n)
public int getReceiverMin(int n)
public int getReceiverMax(int n)
public Point3d getCalibrationPosition(int n)
public Reading getCalibrationReading(int n)
public static String defaultLocation()
public static String defaultFilename()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||