|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.appl.DynamicControl
public abstract class DynamicControl
A Dynamic Control. This runs in its own Thread, and allows subclasses to provide initialize, cleanup, and an evaluation function.
Constructor Summary | |
---|---|
DynamicControl(java.lang.String name)
|
Method Summary | |
---|---|
void |
activateControl()
Activate the DynamicControl thread. |
protected abstract void |
controlCleanup()
Cleanup |
protected abstract void |
controlEvaluate()
Actually evaluate something. |
protected abstract void |
controlInitialize()
Initialize. |
void |
deactivateControl()
Deactivate the DynamicControl thread. |
int |
getElapsedTime()
Get the amount of elapsedTime. |
java.lang.String |
getName()
The name |
int |
getSleepTime()
Get the sleep time between activations. |
boolean |
isRunning()
Is the Thread running |
void |
run()
The run method of the Runnable, which wakes up from time to time and determines if a Probe should be created or destroyed. |
DynamicControl |
setSleepTime(int sl)
Set the sleep time between activations. |
protected void |
sleep()
Actualy sleep. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicControl(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public int getSleepTime()
public DynamicControl setSleepTime(int sl)
public int getElapsedTime()
public void run()
run
in interface java.lang.Runnable
protected void sleep() throws java.lang.InterruptedException
java.lang.InterruptedException
protected abstract void controlInitialize()
protected abstract void controlEvaluate()
protected abstract void controlCleanup()
public void activateControl()
public void deactivateControl()
public boolean isRunning()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |