|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--Sinus
Sinus thread. Generates a sinewave and sends data points to Opcom
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Sinus()
|
|
| Method Summary | |
double |
getAmplitude()
Method called by the run method to get the current amplitude. Calls a synchronized method in an internal monitor. |
double |
getFrequency()
Method called by the run method to get the current frequency. Calls a synchronized method in an internal monitor. |
void |
run()
Run method |
void |
setAmplitude(double amp)
Method called by Opcom to set the current amplitude. Calls a synchronized method in an internal monitor. |
void |
setFrequency(double freq)
Method called by Opcom to set the current frequency. Calls a synchronized method in an internal monitor. |
void |
setOpcom(Opcom opc)
Sets up a reference to Opcom. |
void |
stopThread()
Stop the thread |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Sinus()
| Method Detail |
public void setOpcom(Opcom opc)
public double getAmplitude()
public void setAmplitude(double amp)
public double getFrequency()
public void setFrequency(double freq)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopThread()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||