|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.rps.Reading
@Immutable 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.
The values are indexed by Receiver number, as known to the RPS system. For example, getValue(2) will return the time from RPS receiver 2.
Objects of this class are immutable once created.
| Constructor Summary | |
|---|---|
Reading(Reading r)
|
|
Reading(String id,
double[] values)
|
|
Reading(String id,
double[] values,
int time)
|
|
Reading(String id,
double[] values,
String raw)
|
|
| Method Summary | |
|---|---|
String |
getID()
Return the ID int of the transmitter this reading describes |
int |
getNValues()
NValues is really the highest receiver number possible. |
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()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Reading(String id,
double[] values)
public Reading(String id,
double[] values,
String raw)
public Reading(String id,
double[] values,
int time)
public Reading(Reading r)
| Method Detail |
|---|
public int getTime()
public String getID()
public int getNValues()
public double getValue(int i)
public double[] getValues()
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 | |||||||||