public class EEGPower
extends java.lang.Thread
Constructor and Description |
---|
EEGPower(java.lang.String BTMACAddress,
java.lang.String IP_PORT,
java.lang.String topic,
int period) |
Modifier and Type | Method and Description |
---|---|
double[] |
getPower() |
void |
run() |
void |
setPollPeriod(int newRate) |
void |
setSTOP() |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public EEGPower(java.lang.String BTMACAddress, java.lang.String IP_PORT, java.lang.String topic, int period) throws java.io.IOException, java.lang.Exception
BTMACAddress
- bluetooth address: 00:1A:FF:09:00:9BIP_PORT
- 137.110.244.60:1883topic
- Mindo/4/128args
- ..userXjava.io.IOException
java.lang.Exception
public void setSTOP()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setPollPeriod(int newRate)
public double[] getPower() throws java.lang.Exception
java.lang.Exception