|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.rps.Reading
public class Reading
Encodes a single set of input values (a "reading") for RPS.
The values are in time units (nominally usec), and need to be converted to space units during later calculations. Objects of this class are immutable once created.
| Constructor Summary | |
|---|---|
Reading(int id,
double[] values)
|
|
Reading(int id,
double[] values,
int time)
|
|
Reading(Reading r)
|
|
| Method Summary | |
|---|---|
int |
getID()
Return the ID int of the transmitter this reading describes |
int |
getNSample()
|
Object |
getRawData()
Get the raw data from which this Reading was made. |
int |
getTime()
Return the time at which this Reading was requested |
double |
getValue(int i)
Convenience method to get a specific one of the values |
double[] |
getValues()
|
void |
setRawData(Object o)
Preserve a reference to raw data for possible later logging |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Reading(int id,
double[] values)
public Reading(int id,
double[] values,
int time)
public Reading(Reading r)
| Method Detail |
|---|
public int getTime()
public int getID()
public int getNSample()
public double getValue(int i)
public double[] getValues()
public void setRawData(Object o)
public String toString()
toString in class Objectpublic Object getRawData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||