|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsst.ccs.drivers.wattsup.TestWattsUp
public class TestWattsUp
Program to test a WattsUp power meter
| Constructor Summary | |
|---|---|
TestWattsUp()
Main constructor |
|
| Method Summary | |
|---|---|
boolean |
dispatch(int code,
Scanner scan)
Dispatches command for processing |
static void |
main(String[] args)
Main program |
void |
processData(float[] data)
Processes logged data |
void |
run()
Runs the test |
void |
setClosed()
Handles error-induced port closure |
void |
setPowered(boolean on)
Handles powered state change |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestWattsUp()
throws IOException
IOException| Method Detail |
|---|
public static void main(String[] args)
public void run()
throws IOException
Loops reading and processing each new typed command line.
IOException
public boolean dispatch(int code,
Scanner scan)
dispatch in interface org.lsst.ccs.utilities.sa.CmndProc.Dispatchpublic void setPowered(boolean on)
setPowered in interface WattsUp.Listeneron - Whether the power is onpublic void setClosed()
setClosed in interface WattsUp.Listenerpublic void processData(float[] data)
WattsUp.Listener
processData in interface WattsUp.Listenerdata - An 18-element float array containing the data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||