public class TestWattsUp extends Object implements org.lsst.ccs.utilities.sa.CmndProcess.Dispatch, WattsUp.Listener
| Constructor and Description |
|---|
TestWattsUp() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(int code,
int found,
Object[] args)
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
|
public static void main(String[] args)
public void run()
Loops reading and processing each new typed command line.
public boolean dispatch(int code,
int found,
Object[] args)
dispatch in interface org.lsst.ccs.utilities.sa.CmndProcess.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.ListenerprocessData in interface WattsUp.Listenerdata - An 18-element float array containing the data.Copyright © 2014 LSST. All Rights Reserved.