|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.safetycritical.Mission
cdx.CDxMission
public class CDxMission
The single mission of the parallel CDx. The seven handlers of the mission are InputFrameHandler, ReducerHandler, DetectorHandler (four instances), and OutputCollisionsHandler.
Field Summary | |
---|---|
int |
collisions
Records the number of collisions calculated by the detector handlers. |
DetectorControl |
control
Control object used to orchestrate execution of the handlers. |
RawFrame |
currentFrame
Records the current radar frame. |
StateTable |
state
Records previous aircraft positions. |
Partition |
work
Records a partition of the computational work as it is distributed between the parallel detection handlers. |
Constructor Summary | |
---|---|
CDxMission()
Constructor |
Method Summary | |
---|---|
int |
getColls()
This method returns the cumulative number of collisions recorded. |
RawFrame |
getFrame()
Method to get the current frame object. |
StateTable |
getState()
Method to get the shared partition variable. |
Partition |
getWork()
Method to get the shared work variable. |
void |
initColls()
This method initialises the number of collisions by setting it to 0. |
void |
initialize()
Initialization of the mission. |
long |
missionMemorySize()
Return the default memory size for a mission |
void |
recColls(int n)
This method records a partial collisions result as it is generated by the detection handlers. |
void |
setFrame(RawFrame frame)
Method to set the current frame object. |
void |
setState(StateTable state)
Method to set the state of previous frame. |
void |
setWork(Partition work)
Method to set the shared work variable. |
Methods inherited from class javax.safetycritical.Mission |
---|
cleanup, getCurrentMission, requestSequenceTermination, requestTermination, sequenceTerminationPending, terminationPending |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public RawFrame currentFrame
public StateTable state
public Partition work
public int collisions
public DetectorControl control
Constructor Detail |
---|
public CDxMission()
Method Detail |
---|
public void initialize()
initialize
in class javax.safetycritical.Mission
public long missionMemorySize()
public RawFrame getFrame()
public void setFrame(RawFrame frame)
frame
- the new framepublic StateTable getState()
public void setState(StateTable state)
state
- the state of previous framepublic Partition getWork()
public void setWork(Partition work)
public void initColls()
public void recColls(int n)
n
- Number of collisions to be recorded.public int getColls()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |