Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::comms::watchcallNT::WatchcallNTCommunicationController Class Reference

#include <WatchcallNTCommunicationController.hpp>

Inheritance diagram for iv::comms::watchcallNT::WatchcallNTCommunicationController:
[legend]
Collaboration diagram for iv::comms::watchcallNT::WatchcallNTCommunicationController:
[legend]

Public Member Functions

 WatchcallNTCommunicationController ()=delete
 
 WatchcallNTCommunicationController (const std::shared_ptr< ICommunicationDriver > &driver, const std::shared_ptr< iv::model::comms::NetworkData > &networkData)
 
 WatchcallNTCommunicationController (const WatchcallNTCommunicationController &other)=delete
 
 WatchcallNTCommunicationController (WatchcallNTCommunicationController &&other)=delete
 
 ~WatchcallNTCommunicationController () override=default
 
WatchcallNTCommunicationControlleroperator= (const WatchcallNTCommunicationController &other)=delete
 
WatchcallNTCommunicationControlleroperator= (WatchcallNTCommunicationController &&other)=delete
 
iv::comms::eResponse sendWatchcallNTMessage (const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > &message, iv::types::repeaterId destination) const
 
iv::comms::eResponse sendWatchcallNTBroadcast (const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > &message) const
 
void pause () const
 
void resume () const
 
iv::types::networkId getNetworkId () const
 
std::shared_ptr< iv::model::comms::NetworkDatagetCommConfig () const
 
std::shared_ptr< iv::comms::ICommunicationDrivergetDriver () const
 
bool hasChannel (const iv::types::channelId &channelId) const
 
bool isEnabled ()
 

Protected Attributes

iv::types::networkId m_networkId
 
std::shared_ptr< bool > m_isEnabled
 
std::shared_ptr< iv::model::comms::NetworkDatam_commConfig
 
std::shared_ptr< iv::comms::ICommunicationProtocolm_protocol
 
std::shared_ptr< iv::comms::ICommunicationDriverm_driver
 
std::map< iv::types::channelId, std::shared_ptr< iv::channels::AbstractChannel > > m_channels
 
std::weak_ptr< iv::channels::AbstractChannelm_errorChannel
 
std::weak_ptr< iv::channels::AbstractChannelm_heartbeatChannel
 
std::weak_ptr< iv::comms::ICommunicationControllerm_fallbackComm
 
std::weak_ptr< iv::diamar::AppFailuresLoggerManagerm_appFailuresLoggerManager
 

Private Member Functions

bool frame () override
 
bool sendFrame ()
 
bool receiveFrame ()
 
void initialize () override
 
void addChannel (const std::shared_ptr< iv::channels::AbstractChannel > &channel) override
 

Private Attributes

iv::types::timestamp m_lastReceivedMessageTimestamp {0}
 
iv::types::timestamp m_startTime {0}
 
iv::types::repeaterId m_repeaterId
 
std::map< iv::types::repeaterId, std::pair< iv::types::ipAddress, iv::types::ipPort > > m_repeaterAddresses
 
std::weak_ptr< iv::alarms::WatchcallManagerm_watchcallManager
 

Friends

class WatchcallNTControllerFrame
 

Constructor & Destructor Documentation

◆ WatchcallNTCommunicationController() [1/4]

iv::comms::watchcallNT::WatchcallNTCommunicationController::WatchcallNTCommunicationController ( )
delete

◆ WatchcallNTCommunicationController() [2/4]

iv::comms::watchcallNT::WatchcallNTCommunicationController::WatchcallNTCommunicationController ( const std::shared_ptr< ICommunicationDriver > & driver,
const std::shared_ptr< iv::model::comms::NetworkData > & networkData )
explicit

◆ WatchcallNTCommunicationController() [3/4]

iv::comms::watchcallNT::WatchcallNTCommunicationController::WatchcallNTCommunicationController ( const WatchcallNTCommunicationController & other)
delete

◆ WatchcallNTCommunicationController() [4/4]

iv::comms::watchcallNT::WatchcallNTCommunicationController::WatchcallNTCommunicationController ( WatchcallNTCommunicationController && other)
delete

◆ ~WatchcallNTCommunicationController()

iv::comms::watchcallNT::WatchcallNTCommunicationController::~WatchcallNTCommunicationController ( )
overridedefault

Member Function Documentation

◆ addChannel()

void iv::comms::watchcallNT::WatchcallNTCommunicationController::addChannel ( const std::shared_ptr< iv::channels::AbstractChannel > & channel)
overrideprivatevirtual

◆ frame()

bool iv::comms::watchcallNT::WatchcallNTCommunicationController::frame ( )
overrideprivatevirtual

◆ getCommConfig()

std::shared_ptr< iv::model::comms::NetworkData > iv::comms::ICommunicationController::getCommConfig ( ) const
inlinenodiscardinherited

◆ getDriver()

std::shared_ptr< iv::comms::ICommunicationDriver > iv::comms::ICommunicationController::getDriver ( ) const
inlinenodiscardinherited

◆ getNetworkId()

iv::types::networkId iv::comms::ICommunicationController::getNetworkId ( ) const
inlinenodiscardinherited

◆ hasChannel()

bool iv::comms::ICommunicationController::hasChannel ( const iv::types::channelId & channelId) const
inlinenodiscardinherited

◆ initialize()

void iv::comms::watchcallNT::WatchcallNTCommunicationController::initialize ( )
overrideprivatevirtual

◆ isEnabled()

bool iv::comms::ICommunicationController::isEnabled ( )
inlinenodiscardinherited

◆ operator=() [1/2]

WatchcallNTCommunicationController & iv::comms::watchcallNT::WatchcallNTCommunicationController::operator= ( const WatchcallNTCommunicationController & other)
delete

◆ operator=() [2/2]

WatchcallNTCommunicationController & iv::comms::watchcallNT::WatchcallNTCommunicationController::operator= ( WatchcallNTCommunicationController && other)
delete

◆ pause()

void iv::comms::ICommunicationController::pause ( ) const
inlineinherited

◆ receiveFrame()

bool iv::comms::watchcallNT::WatchcallNTCommunicationController::receiveFrame ( )
private

◆ resume()

void iv::comms::ICommunicationController::resume ( ) const
inlineinherited

◆ sendFrame()

bool iv::comms::watchcallNT::WatchcallNTCommunicationController::sendFrame ( )
private

◆ sendWatchcallNTBroadcast()

iv::comms::eResponse iv::comms::watchcallNT::WatchcallNTCommunicationController::sendWatchcallNTBroadcast ( const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > & message) const

◆ sendWatchcallNTMessage()

iv::comms::eResponse iv::comms::watchcallNT::WatchcallNTCommunicationController::sendWatchcallNTMessage ( const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > & message,
iv::types::repeaterId destination ) const

Friends And Related Symbol Documentation

◆ WatchcallNTControllerFrame

friend class WatchcallNTControllerFrame
friend

Member Data Documentation

◆ m_appFailuresLoggerManager

std::weak_ptr<iv::diamar::AppFailuresLoggerManager> iv::comms::ICommunicationController::m_appFailuresLoggerManager
protectedinherited

◆ m_channels

std::map<iv::types::channelId, std::shared_ptr<iv::channels::AbstractChannel> > iv::comms::ICommunicationController::m_channels
protectedinherited

◆ m_commConfig

std::shared_ptr<iv::model::comms::NetworkData> iv::comms::ICommunicationController::m_commConfig
protectedinherited

◆ m_driver

std::shared_ptr<iv::comms::ICommunicationDriver> iv::comms::ICommunicationController::m_driver
protectedinherited

◆ m_errorChannel

std::weak_ptr<iv::channels::AbstractChannel> iv::comms::ICommunicationController::m_errorChannel
protectedinherited

◆ m_fallbackComm

std::weak_ptr<iv::comms::ICommunicationController> iv::comms::ICommunicationController::m_fallbackComm
protectedinherited

◆ m_heartbeatChannel

std::weak_ptr<iv::channels::AbstractChannel> iv::comms::ICommunicationController::m_heartbeatChannel
protectedinherited

◆ m_isEnabled

std::shared_ptr<bool> iv::comms::ICommunicationController::m_isEnabled
protectedinherited

◆ m_lastReceivedMessageTimestamp

iv::types::timestamp iv::comms::watchcallNT::WatchcallNTCommunicationController::m_lastReceivedMessageTimestamp {0}
private

◆ m_networkId

iv::types::networkId iv::comms::ICommunicationController::m_networkId
protectedinherited

◆ m_protocol

std::shared_ptr<iv::comms::ICommunicationProtocol> iv::comms::ICommunicationController::m_protocol
protectedinherited

◆ m_repeaterAddresses

std::map<iv::types::repeaterId, std::pair<iv::types::ipAddress, iv::types::ipPort> > iv::comms::watchcallNT::WatchcallNTCommunicationController::m_repeaterAddresses
private

◆ m_repeaterId

iv::types::repeaterId iv::comms::watchcallNT::WatchcallNTCommunicationController::m_repeaterId
private

◆ m_startTime

iv::types::timestamp iv::comms::watchcallNT::WatchcallNTCommunicationController::m_startTime {0}
private

◆ m_watchcallManager

std::weak_ptr<iv::alarms::WatchcallManager> iv::comms::watchcallNT::WatchcallNTCommunicationController::m_watchcallManager
private

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