|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsensorDriver
public class sensorDriver
The main driver for Lab 3
Field Summary | |
---|---|
static int |
numSamples
Total number of samples to take |
static int |
sampleInterval
Interval between samples (note that there is also other overhead that extends this delay) |
Constructor Summary | |
---|---|
sensorDriver()
|
Method Summary | |
---|---|
static void |
displaySensors(FinchSensor[] sensors)
Display the sequence of sensor samples in the given array |
static void |
displayStats(FinchSensor[] log,
SensorType var)
For the given sensor channel (as indicated by var), display the entire sensor sample for the minimum, median and maximum channel values |
static void |
main(java.lang.String[] args)
The main method |
static FinchSensor[] |
ReadSensors(finch.Finch myFinch)
Read a sequence of samples from the Finch sensors |
static void |
sort(Comparable2[] list,
VariableType var)
Sort an array of Comparable2 objects Adopted from Listing 11.10 from "Introduction to Java Programming". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int numSamples
public static final int sampleInterval
Constructor Detail |
---|
public sensorDriver()
Method Detail |
---|
public static void sort(Comparable2[] list, VariableType var)
list
- A valid list of objects to be sortedvar
- The key that indicates which variable to sort on
public static void displayStats(FinchSensor[] log, SensorType var)
log
- An valid array of Finch sensor samplesvar
- The sensor channel on which to organize the listpublic static void displaySensors(FinchSensor[] sensors)
sensors
- An array of sensor samplespublic static FinchSensor[] ReadSensors(finch.Finch myFinch)
myFinch
- Reference to the finch object
public static void main(java.lang.String[] args)
args
- Program arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |