Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <ValveManager.hpp>
Classes | |
struct | Constants |
struct | Sections |
Static Public Member Functions | |
static std::set< iv::types::unitId > | getAvailableLomIds (iv::model::control::valve::eValveType valveType) |
Get the LOM IDs of the LOMs capable of managing a valve of a given type. | |
static std::optional< std::shared_ptr< iv::channels::AbstractChannel > > | getTheNAvailableValveFeedbackChannel (iv::types::unitId lomId, uint16_t n) |
Get the Nth available valve feedback channel for a given LOM ID. | |
static std::optional< std::shared_ptr< iv::channels::AbstractChannel > > | getTheNAvailableValveOrderChannel (iv::types::unitId lomId, uint16_t n) |
Get the Nth available valve order channel for a given LOM ID. | |
static iv::model::control::valve::eLomAvailability | getLomAvailability (const std::shared_ptr< iv::units::Unit > &unit, iv::model::control::valve::eValveType valveType) |
Get the availability of LOMs for a given valve type. | |
Static Private Member Functions | |
static bool | isDefaultChannel (const std::shared_ptr< iv::channels::AbstractChannel > &channel) |
Check if the channel is a default channel from the point of view of Valves. | |
static uint16_t | getNumAvailableDigitalOutputChannels (const std::shared_ptr< iv::units::Unit > &unit) |
Get the number of available digital output channels for a given unit. | |
static std::list< iv::types::channelOrder > | getNumAvailableCmdChannelOrders (const std::shared_ptr< iv::units::Unit > &unit) |
Get the available command channel orders for a given unit. | |
static std::list< iv::types::channelOrder > | getNumAvailableTripChannelOrders (const std::shared_ptr< iv::units::Unit > &unit) |
Get the available trip channel orders for a given unit. | |
static bool | linkAndConfigureValveChannels (const std::shared_ptr< iv::model::control::Valve > &valve) |
Link and configure the channels of a valve. | |
static void | reconfigureValveChannels (const std::shared_ptr< iv::model::control::Valve > &valve) |
static void | resetValveWiredChannels (const std::shared_ptr< iv::model::control::Valve > &valve) |
Reset the wired channels of a valve. | |
static void | removeValveSoftwareChannels (const std::shared_ptr< iv::model::control::Valve > &valve) |
Remove the software channels of a valve. | |
static bool | configureChFeedbackOP (const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::types::control::valve::valveId valveId) |
static bool | configureChFeedbackCL (const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::types::control::valve::valveId valveId) |
static bool | configureChOutputOP (const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::types::control::valve::valveId valveId) |
static bool | configureChOutputCL (const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::types::control::valve::valveId valveId) |
static bool | configureChCmdOP (const std::shared_ptr< iv::channels::AbstractChannel > &channel, const iv::types::control::valve::valveId &valveId, iv::types::channelOrder channelOrder, iv::types::unitId unitId, bool isConfiguringFromController) |
static bool | configureChCmdCL (const std::shared_ptr< iv::channels::AbstractChannel > &channel, const iv::types::control::valve::valveId &valveId, iv::types::channelOrder channelOrder, iv::types::unitId unitId, bool isConfiguringFromController) |
static bool | configureChCmdReset (const std::shared_ptr< iv::channels::AbstractChannel > &channel, const iv::types::control::valve::valveId &valveId, iv::types::channelOrder channelOrder, iv::types::unitId unitId, bool isConfiguringFromController) |
static bool | configureChTrip (const std::shared_ptr< iv::channels::AbstractChannel > &channel, const iv::types::control::valve::valveId &valveId, iv::types::channelOrder channelOrder, iv::types::unitId unitId, bool isConfiguringFromController) |
Private Attributes | |
std::map< iv::types::control::valve::valveId, std::shared_ptr< iv::model::control::Valve > > | m_valves |
|
default |
|
default |
bool iv::model::control::ValveManager::changeValveSystemAndOrder | ( | const iv::types::control::valve::valveId & | oldValveId, |
iv::model::control::valve::eValveSystem | newValveSystem, | ||
iv::types::control::valve::valveOrder | newValveOrder ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
bool iv::model::control::ValveManager::createValve | ( | valve::eValveSystem | valveSystem, |
iv::types::control::valve::valveOrder | valveOrder, | ||
iv::model::control::valve::eValveType | valveType, | ||
iv::types::unitId | lomId, | ||
const iv::model::control::valve::AllValveChannels & | allValveChannels ) |
|
staticnodiscard |
Get the LOM IDs of the LOMs capable of managing a valve of a given type.
valveType | The valve type to check. |
|
staticnodiscard |
Get the availability of LOMs for a given valve type.
unit | The unit to check. |
valveType | The valve type to check. |
|
staticprivate |
Get the available command channel orders for a given unit.
unit | The unit to check. |
|
staticnodiscardprivate |
Get the number of available digital output channels for a given unit.
unit | The unit to check. |
|
staticprivate |
Get the available trip channel orders for a given unit.
unit | The unit to check. |
|
staticnodiscard |
Get the Nth available valve feedback channel for a given LOM ID.
lomId | The LOM ID to check. |
n | The index of the channel to retrieve (1-based). |
|
staticnodiscard |
Get the Nth available valve order channel for a given LOM ID.
lomId | The LOM ID to check. |
n | The index of the channel to retrieve (1-based). |
void iv::model::control::ValveManager::getValveValidDefaultParameters | ( | iv::model::control::valve::eValveSystem & | defaultValveSystem, |
iv::types::control::valve::valveOrder & | defaultValveOrder, | ||
valve::eValveType & | defaultValveType, | ||
iv::types::unitId & | defaultLomId ) |
Gets a valid combination of default parameters for a valve.
defaultValveSystem | The default valve system. |
defaultValveOrder | The default valve order. |
defaultValveType | The default valve type. |
defaultLomId | The default LOM ID. |
bool iv::model::control::ValveManager::insertValve | ( | const std::shared_ptr< iv::model::control::Valve > & | valve | ) |
|
staticnodiscardprivate |
Check if the channel is a default channel from the point of view of Valves.
channel | The channel to check. |
|
staticnodiscardprivate |
Link and configure the channels of a valve.
valve | The valve to link and configure. |
bool iv::model::control::ValveManager::load | ( | const iv::file::xml::node & | nodeValves | ) |
|
staticprivate |
bool iv::model::control::ValveManager::removeValve | ( | const types::control::valve::valveId & | valveId, |
bool | resetWiredChannels, | ||
bool | removeSoftwareChannels ) |
|
staticprivate |
Remove the software channels of a valve.
valve | The valve to remove the software channels from. |
|
staticprivate |
Reset the wired channels of a valve.
valve | The valve to reset. |
bool iv::model::control::ValveManager::save | ( | iv::file::xml::node & | nodeValves | ) | const |
void iv::model::control::ValveManager::update | ( | const ValveManager & | other | ) |
|
nodiscard |
|
private |