|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.localization.RangeReadings
public class RangeReadings
Represents a set of range readings.
| Field Summary | |
|---|---|
static float |
INVALID_READING
|
| Constructor Summary | |
|---|---|
RangeReadings(int numReadings)
|
|
| Method Summary | |
|---|---|
void |
dumpReadings(DataOutputStream dos)
Dump the readings to a DataOutputStream |
int |
getNumReadings()
Get the number of readings in a set |
float |
getRange(int i)
Get a specific range reading |
boolean |
incomplete()
Return true if the readings are incomplete |
void |
loadReadings(DataInputStream dis)
Load the readings from a DataInputStream |
void |
setNumReadings(short num)
Set the number of readings |
void |
setRange(int i,
float range)
Set a range reading |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float INVALID_READING
| Constructor Detail |
|---|
public RangeReadings(int numReadings)
| Method Detail |
|---|
public void setRange(int i,
float range)
i - the reading indexrange - the range valuepublic float getRange(int i)
i - the reading index
public boolean incomplete()
public void setNumReadings(short num)
num - the number of readingspublic int getNumReadings()
public void dumpReadings(DataOutputStream dos)
throws IOException
dos - the stream
IOException
public void loadReadings(DataInputStream dis)
throws IOException
dis - the stream
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||