Action object for Logic processing.
More...
#include <Logics.h>
|
| | Action (openlcb::Node *n, const ActionConfig &cfg, Timing *timer) |
| |
|
void | trigger (BarrierNotifiable *done) |
| | process trigger actions
|
| |
|
bool | DoAction (bool logicResult, BarrierNotifiable *done) |
| | handles actions
|
| |
| virtual UpdateAction | apply_configuration (int fd, bool initial_load, BarrierNotifiable *done) override |
| | Invoked on initial load of CDI and when CDI is udpated.
Register configured events with OpenMRN. More...
|
| |
| virtual void | factory_reset (int fd) |
| |
|
void | handle_identify_global (const openlcb::EventRegistryEntry ®istry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override |
| | Process global request to identify events.
|
| |
|
void | handle_identify_producer (const openlcb::EventRegistryEntry ®istry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override |
| | Process request to identify produced events.
|
| |
Action object for Logic processing.
Definition at line 364 of file Logics.h.
◆ Trigger
Possible logic trigger setting
Definition at line 368 of file Logics.h.
◆ Action()
| Action::Action |
( |
openlcb::Node * |
n, |
|
|
const ActionConfig & |
cfg, |
|
|
Timing * |
timer |
|
) |
| |
|
inline |
◆ apply_configuration()
| ConfigUpdateListener::UpdateAction Action::apply_configuration |
( |
int |
fd, |
|
|
bool |
initial_load, |
|
|
BarrierNotifiable * |
done |
|
) |
| |
|
overridevirtual |
Invoked on initial load of CDI and when CDI is udpated.
Register configured events with OpenMRN.
- Parameters
-
| fd | file descriptor used to access CDI data |
| initial_load | is true when CDI is loaded after a reboot |
| done | |
Definition at line 241 of file Logics.cpp.
◆ factory_reset()
| void Action::factory_reset |
( |
int |
fd | ) |
|
|
virtual |
applies current configuration
Reset CDI configuration entries to their initial (default) values
- Parameters
-
| fd | used to access the CDI information in the file system |
Definition at line 281 of file Logics.cpp.
The documentation for this class was generated from the following files: