cdx
Class OutputCollisionsHandler
java.lang.Object
javax.safetycritical.AbstractAsyncEventHandler
javax.safetycritical.AsyncEventHandler
javax.safetycritical.BoundAsyncEventHandler
javax.safetycritical.ManagedEventHandler
javax.safetycritical.AperiodicEventHandler
cdx.OutputCollisionsHandler
- All Implemented Interfaces:
- java.lang.Runnable, javax.safetycritical.ManagedSchedulable, javax.safetycritical.Schedulable
public class OutputCollisionsHandler
- extends javax.safetycritical.AperiodicEventHandler
OutputCollisionsHandler outputs the number of detected collisions to an
external device. For the purpose of the simulation, we merely print it on
the screen.
Method Summary |
void |
handleEvent()
Update the number of collisions in the mission. |
Methods inherited from class javax.safetycritical.AperiodicEventHandler |
register |
Methods inherited from class javax.safetycritical.ManagedEventHandler |
cleanup, getName |
Methods inherited from class javax.safetycritical.AsyncEventHandler |
handleAsyncEvent |
Methods inherited from class javax.safetycritical.AbstractAsyncEventHandler |
run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
mission
public final CDxMission mission
- The current mission
OutputCollisionsHandler
public OutputCollisionsHandler(CDxMission mission,
javax.safetycritical.AperiodicEvent event_bound)
- Constructor
- Parameters:
mission
- the current missionevent_bound
- the event to release this handler
handleEvent
public void handleEvent()
- Update the number of collisions in the mission.