3-phase PV router
Loading...
Searching...
No Matches
MockRelayOutput Class Reference

Public Member Functions

 MockRelayOutput (int32_t import_threshold=20, int32_t surplus_threshold=20)
 
bool proceed_relay (int32_t power_value)
 
void reset_state ()
 

Public Attributes

int32_t m_import_threshold
 
bool m_relay_state
 
int32_t m_surplus_threshold
 

Detailed Description

Definition at line 22 of file test_main.cpp.

Constructor & Destructor Documentation

◆ MockRelayOutput()

MockRelayOutput::MockRelayOutput ( int32_t import_threshold = 20,
int32_t surplus_threshold = 20 )
inline

Definition at line 29 of file test_main.cpp.

Member Function Documentation

◆ proceed_relay()

bool MockRelayOutput::proceed_relay ( int32_t power_value)
inline

Definition at line 33 of file test_main.cpp.

Here is the caller graph for this function:

◆ reset_state()

void MockRelayOutput::reset_state ( )
inline

Definition at line 67 of file test_main.cpp.

Member Data Documentation

◆ m_import_threshold

int32_t MockRelayOutput::m_import_threshold

Definition at line 26 of file test_main.cpp.

◆ m_relay_state

bool MockRelayOutput::m_relay_state

Definition at line 25 of file test_main.cpp.

◆ m_surplus_threshold

int32_t MockRelayOutput::m_surplus_threshold

Definition at line 27 of file test_main.cpp.


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