atmos_reaction_recorder

Component for atmos-related atoms to be able to record and transmit their reaction_results data Use this ONLY for atoms, gasmixtures will be accessed by calling return air on the object. Add this component after gasmixes has been initialized.
Vars | |
copied_reaction_results | The list we write append each reaction tick to. This is often a list initialized by something else (passed as a reference under Initialize). |
---|---|
registered_signals | Signals we have been listening to. |
Procs | |
Initialize | Verify that parent is indeed an atom, and then register signals. Args: |
update_data | Fetches reaction_results and updates the list. |
Var Details
copied_reaction_results

The list we write append each reaction tick to. This is often a list initialized by something else (passed as a reference under Initialize).
registered_signals

Signals we have been listening to.
Proc Details
Initialize
Verify that parent is indeed an atom, and then register signals. Args:
- target_list (list): The list we are writing the captured reaction_results to.
- reset_criteria (list): Assoc signal-source list containing signals to be registered to. We will reset if any of them are sent.
update_data
Fetches reaction_results and updates the list.