private class EV3ColorSensor.ColorIDMode extends EV3DevSensorMode
Modifier and Type | Field and Description |
---|---|
private java.io.File |
pathDevice |
VALUE0, VALUE1, VALUE2
Constructor and Description |
---|
ColorIDMode(java.io.File pathDevice) |
Modifier and Type | Method and Description |
---|---|
void |
fetchSample(float[] sample,
int offset)
Fetches a sample from a sensor or filter.
|
java.lang.String |
getName()
return a string description of this sensor mode
|
int |
sampleSize()
Returns the number of elements in a sample.
|
getElements, readFloat, readInteger, readString, writeInteger, writeString
close, releaseOnClose
public int sampleSize()
SampleProvider
public void fetchSample(float[] sample, int offset)
SampleProvider
sample
- The array to store the sample in.offset
- The elements of the sample are stored in the array starting at the offset position.public java.lang.String getName()
SensorMode