LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
Action Class Reference

Action object for Logic processing. More...

#include <Logics.h>

Inheritance diagram for Action:
Collaboration diagram for Action:

Public Types

enum  Trigger
 

Public Member Functions

 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 &registry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override
 Process global request to identify events.
 
void handle_identify_producer (const openlcb::EventRegistryEntry &registry_entry, openlcb::EventReport *event, BarrierNotifiable *done) override
 Process request to identify produced events.
 

Detailed Description

Action object for Logic processing.

Definition at line 364 of file Logics.h.

Member Enumeration Documentation

◆ Trigger

Possible logic trigger setting

Definition at line 368 of file Logics.h.

Constructor & Destructor Documentation

◆ Action()

Action::Action ( openlcb::Node *  n,
const ActionConfig &  cfg,
Timing timer 
)
inline

Process Logic action

Definition at line 378 of file Logics.h.

Member Function Documentation

◆ 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
fdfile descriptor used to access CDI data
initial_loadis 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
fdused 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: