|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.execution.ObserverExecution
public class ObserverExecution
The Class ObserverExecution. This implements the behavior of an observer worker thread that
operates on one dedicated DataComponenet that is a pure observer.
An observer not needs to get finished during one execution step but may be skipped when it not
finishes until it should be called in a consecutive execution step.
It sleeps until it is called and indicates that it is ready for the next step with its done flag.
Constructor Summary | |
---|---|
ObserverExecution(AbstractDataComponent dataComponentParam,
Execution parentParam)
Instantiates a new observer execution worker thread. |
Method Summary | |
---|---|
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
setData(JSONObject dataParam)
Sets the input JSON data for the observer DataComponent. |
boolean |
step()
Schedules a new step of the observer DataComponent. |
void |
stopExecution()
Terminates the execution of this thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObserverExecution(AbstractDataComponent dataComponentParam, Execution parentParam)
dataComponentParam
- the affected DataComponentparentParam
- the parent executionMethod Detail |
---|
public boolean step()
public void setData(JSONObject dataParam)
dataParam
- the input datapublic void stopExecution()
public void run()
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |