|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.DetectorControl
public class DetectorControl
This class is used to control the execution of OutputCollisionsHandler. In particular, it ensures the release of this handler once all instances of DetectorHandler have finished their computational work.
Constructor Summary | |
---|---|
DetectorControl(javax.safetycritical.AperiodicEvent event,
int n)
Constructor |
Method Summary | |
---|---|
protected boolean |
done()
Method to check whether all DetectorHandlers have finished. |
void |
notify(int id)
Method to release OutputCollisionHandler if all DetectorHandlers have finihsed. |
void |
start()
Method to record the state of each DetectorHandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DetectorControl(javax.safetycritical.AperiodicEvent event, int n)
event
- the event to release OutputCollisionHandlern
- the number of DetectorHandler in parallelMethod Detail |
---|
public void start()
public void notify(int id)
protected boolean done()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |