MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ LogicContext()

MayaFlux::Nodes::Generator::LogicContext::LogicContext ( double  value,
LogicMode  mode,
LogicOperator  operator_type,
const std::deque< bool > &  history,
double  threshold,
bool  edge_detected = false,
EdgeType  edge_type = EdgeType::BOTH,
const std::vector< double > &  inputs = {} 
)
inline

Constructs a LogicContext with complete state information.

Parameters
valueCurrent output value (0.0 for false, 1.0 for true)
modeCurrent computational model
operator_typeCurrent boolean operator
historyBuffer of previous boolean states
thresholdDecision boundary for binary quantization
edge_detectedWhether a state transition was detected
edge_typeType of transition being monitored
inputsCurrent input values for multi-input evaluation

Definition at line 73 of file Logic.hpp.

80 {})
81 : NodeContext(value, typeid(LogicContext).name())
82 , m_mode(mode)
83 , m_operator(operator_type)
84 , m_history(history)
85 , m_threshold(threshold)
86 , m_edge_detected(edge_detected)
87 , m_edge_type(edge_type)
88 , m_inputs(inputs)
89 , m_input(value)
90 {
91 }
std::deque< bool > m_history
History of boolean states.
Definition Logic.hpp:109
LogicMode m_mode
Current computational model.
Definition Logic.hpp:107
LogicOperator m_operator
Current boolean operator.
Definition Logic.hpp:108
std::vector< double > m_inputs
Current input values (for multi-input mode)
Definition Logic.hpp:113
LogicContext(double value, LogicMode mode, LogicOperator operator_type, const std::deque< bool > &history, double threshold, bool edge_detected=false, EdgeType edge_type=EdgeType::BOTH, const std::vector< double > &inputs={})
Constructs a LogicContext with complete state information.
Definition Logic.hpp:73
double m_input
Current input value for multi-input mode.
Definition Logic.hpp:114
EdgeType m_edge_type
Type of transition being monitored.
Definition Logic.hpp:112
bool m_edge_detected
Whether a state transition was detected.
Definition Logic.hpp:111
double m_threshold
Decision boundary for binary quantization.
Definition Logic.hpp:110
double value
Current sample value.
Definition Node.hpp:40
NodeContext(double value, const std::string &type)
Protected constructor for NodeContext.
Definition Node.hpp:85