2022-08-05 22:05:10 +00:00
|
|
|
| [Home](/trick) → [Documentation Home](../Documentation-Home) → [Simulation Capabilities](Simulation-Capabilities) → Event Manager |
|
|
|
|
|------------------------------------------------------------------|
|
2019-11-20 17:04:58 +00:00
|
|
|
|
|
|
|
This page describes the methods available in the Trick::EventManager and Trick::EventProcessor class.
|
2020-10-09 22:52:46 +00:00
|
|
|
See [Input_File](/trick/documentation/running_a_simulation/Input-File) for detailed information on the syntax of the input processor file.
|
2019-11-20 17:04:58 +00:00
|
|
|
|
2023-04-21 22:32:31 +00:00
|
|
|
## User accessible routines
|
2019-11-20 17:04:58 +00:00
|
|
|
|
|
|
|
These commands are for adding and removing events from the Event Manager
|
|
|
|
|
|
|
|
```
|
|
|
|
Event * get_event() @endlink
|
|
|
|
int add_event( Trick::Event * in_event )
|
|
|
|
int add_event_after( Trick::Event * in_event, std::string target_name, unsigned int target_inst )
|
|
|
|
int add_event_before( Trick::Event * in_event, std::string target_name, unsigned int target_inst )
|
|
|
|
int remove_event( Trick::Event * in_event )
|
|
|
|
```
|
|
|
|
|
2023-04-21 22:32:31 +00:00
|
|
|
## Event Processing Flow
|
2019-11-20 17:04:58 +00:00
|
|
|
|
|
|
|
The next set of flowcharts details how the %Trick Event Processor processes events.
|
|
|
|
|
|
|
|
![Event_Processing](images/event_processing.jpg)
|
|
|
|
|
|
|
|
<b>Figure IP_1 Input Processor Event Processing</b>
|
|
|
|
|
|
|
|
Each thread in the simulation has an event processing job.
|
|
|
|
|
|
|
|
[Continue to Realtime](Realtime)
|