|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.ArrayList<RangeReading>
lejos.robotics.RangeReadings
public class RangeReadings
Represents a set of range readings.
| Field Summary |
|---|
| Fields inherited from class java.util.ArrayList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RangeReadings(int numReadings)
|
|
| Method Summary | ||
|---|---|---|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
void |
dumpReadings(DataOutputStream dos)
Dump the readings to a DataOutputStream |
|
boolean |
equals(Object o)
|
|
float |
getAngle(int index)
Get the angle of a specific reading |
|
int |
getNumReadings()
Get the number of readings in a set |
|
float |
getRange(float angle)
Get a range reading for a specific angle |
|
float |
getRange(int i)
Get a specific range reading |
|
boolean |
incomplete()
Return true if the readings are incomplete |
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
ListIterator<E> |
listIterator()
|
|
void |
loadReadings(DataInputStream dis)
Load the readings from a DataInputStream |
|
void |
printReadings()
Print the range readings on standard out |
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
void |
setRange(int index,
float angle,
float range)
Set the range reading |
|
Object[] |
toArray()
|
|
|
toArray(T[] dest)
|
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, addAll, addAll, clear, ensureCapacity, get, indexOf, lastIndexOf, listIterator, remove, remove, removeRange, set, size, subList, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
containsAll, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public RangeReadings(int numReadings)
| Method Detail |
|---|
public float getRange(int i)
i - the reading index
public float getRange(float angle)
angle - the reading angle
public float getAngle(int index)
index - the index of the reading
public boolean incomplete()
public int getNumReadings()
public void setRange(int index,
float angle,
float range)
index - the index of the reading in the setangle - the angle of the reading relative to the robot headingrange - the range reading
public void dumpReadings(DataOutputStream dos)
throws IOException
dos - the stream
IOException
public void loadReadings(DataInputStream dis)
throws IOException
dis - the stream
IOExceptionpublic void printReadings()
public boolean contains(Object o)
contains in interface Collection<E>public boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] dest)
toArray in interface Collection<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||