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

Logic object for processing signal logic. More...

#include <Logics.h>

Inheritance diagram for Logic:
Collaboration diagram for Logic:

Public Types

enum  GroupFunction
 Possible logic group functions.
 
enum  LogicFunction
 Possible Logic functions.
 
enum  ActionType
 Possible types of actions.
 
enum  Which
 possible variables that can be selected
 

Public Member Functions

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)
 handle reseting CDI to factory settings More...
 
virtual void Evaluate (Which v, BarrierNotifiable *done)
 Evaluates variable logic.
 
virtual const std::string Description () const
 

Detailed Description

Logic object for processing signal logic.

Parameters
nodeis the OpenLCB node object from the stack.
cfgis the object from the configuration space that represents Logic CDI configuration
timersis a timer object
nextis the next Logic object to be processed

Definition at line 459 of file Logics.h.

Member Function Documentation

◆ apply_configuration()

ConfigUpdateListener::UpdateAction Logic::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.

retrieve current CDI configuration for logics

Parameters
fdfile descriptor used to access CDI data
initial_loadis true when CDI is loaded after a reboot
done

Definition at line 296 of file Logics.cpp.

◆ Description()

virtual const std::string Logic::Description ( ) const
inlinevirtual
Returns
current user defined value found in the CDI Description field

Implements LogicCallback.

Definition at line 535 of file Logics.h.

◆ factory_reset()

void Logic::factory_reset ( int  fd)
virtual

handle reseting CDI to factory settings

Reset CDI configuration entries to their initial (default) values

Parameters
fdused to access the CDI information in the file system

Definition at line 311 of file Logics.cpp.


The documentation for this class was generated from the following files: