trick/docs/documentation/simulation_capabilities/Event-Manager.md
Jacqueline Deans 6c685d8400
Revise Documentation, Correct a single constant (#1326) (#1489)
* Fix formatting, grammar, and syntax

Additionally, a sentence that referenced something that isn't used anywhere was removed.

* Promote headers, Format stuff

Many headers were far too deep. In some cases, the highest header was h4. To correct this, the offending headers were promoted once or twice as appropriate. Minor formatting changes were made, too.

* Fixed an incorrect conversion constant.

* Update library dependency explanation

The old explanation was confusing and seemingly self contradicting in places. This new explanation aims to fix that.

Co-authored-by: Matthew Elmer <m.elmer@mailbox.org>
2023-04-21 17:32:31 -05:00

1.2 KiB

HomeDocumentation HomeSimulation Capabilities → Event Manager

This page describes the methods available in the Trick::EventManager and Trick::EventProcessor class. See Input_File for detailed information on the syntax of the input processor file.

User accessible routines

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 )

Event Processing Flow

The next set of flowcharts details how the %Trick Event Processor processes events.

Event_Processing

Figure IP_1 Input Processor Event Processing

Each thread in the simulation has an event processing job.

Continue to Realtime