|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.rps.Measurement
public class Measurement
Encodes a single measurement point for RPS
Immutable
| Field Summary | |
|---|---|
protected int |
code
|
| Constructor Summary | |
|---|---|
Measurement(Reading r)
|
|
Measurement(Reading r,
double x,
double y,
double z,
double vsound,
int code,
String source)
|
|
| Method Summary | |
|---|---|
int |
getCode()
Error code, defined specifically by generator |
String |
getID()
Return the ID int of the transmitter this measurement describes |
Point3d |
getPoint()
|
Reading |
getReading()
Return the Reading this measurement made from. |
String |
getSource()
Get name of the source |
Vector3d |
getVector()
|
double |
getVSound()
|
double |
getX()
|
double |
getY()
|
double |
getZ()
|
boolean |
isOkPoint()
Should this be considered a valid measurement? |
boolean |
isValidPosition()
|
void |
setValidPosition(boolean val)
|
String |
textCode()
Get the error code as a human-readable string |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int code
| Constructor Detail |
|---|
public Measurement(Reading r)
public Measurement(Reading r,
double x,
double y,
double z,
double vsound,
int code,
String source)
| Method Detail |
|---|
public Reading getReading()
By definition, Reading objects are immutable
public String getID()
public double getX()
public double getY()
public double getZ()
public double getVSound()
public boolean isValidPosition()
public void setValidPosition(boolean val)
public int getCode()
public boolean isOkPoint()
public String textCode()
public Point3d getPoint()
public Vector3d getVector()
public String getSource()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||