Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Station.hpp>
Classes | |
struct | DefaultValues |
struct | Keys |
struct | Sections |
struct | Settings |
Public Attributes | |
iv::types::timestamp | lastHeartbeat |
Private Member Functions | |
bool | loadIp (const iv::file::xml::node &nodeStation) |
bool | saveIp (iv::file::xml::node &nodeStation) const |
bool | loadNetworks (const iv::file::xml::node &nodeStation, iv::diamar::StationNetworksLoadData &readNetworksInfo) const |
bool | saveNetworks (iv::file::xml::node &nodeStation, const std::vector< std::shared_ptr< iv::model::comms::NetworkData > > &stationNetworks) const |
Private Attributes | |
std::weak_ptr< iv::channels::AbstractChannel > | m_stationHeartbeatChannel |
std::weak_ptr< iv::channels::AbstractChannel > | m_stationCommFailureChannel |
iv::types::stationId | m_idStation |
iv::types::unitId | m_stationUnitId {0} |
This field is used to mantain compatibilty with slim, please do NOT use for anything other than LOMs communication. | |
std::set< iv::types::ipAddress > | m_ip |
iv::model::eShipArea | m_shipArea {iv::model::eShipArea::Ecr} |
iv::diamar::Station::Settings | m_stationSettings |
std::map< iv::types::unitId, std::map< iv::comms::eLomLine, iv::types::timestamp > > | unitsLastHeartbeats |
std::mutex | m_unitsLastHeartbeatsMutex |
|
nodiscard |
|
nodiscard |
std::set< iv::types::ipAddress > & iv::diamar::Station::getIpsRef | ( | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
bool iv::diamar::Station::load | ( | const iv::file::xml::node & | nodeStation, |
iv::diamar::StationNetworksLoadData & | readNetworksInfo ) |
|
private |
|
private |
bool iv::diamar::Station::save | ( | iv::file::xml::node & | nodeStation, |
const std::vector< std::shared_ptr< iv::model::comms::NetworkData > > & | stationNetworks ) const |
|
private |
|
private |
void iv::diamar::Station::setIps | ( | std::set< iv::types::ipAddress > | ipAddresses | ) |
void iv::diamar::Station::setStationFailureChannel | ( | const std::shared_ptr< iv::channels::AbstractChannel > & | channel | ) |
void iv::diamar::Station::setStationHeartbeatChannel | ( | const std::shared_ptr< iv::channels::AbstractChannel > & | channel | ) |
void iv::diamar::Station::setUnitLastHeartbeats | ( | const std::map< iv::types::unitId, std::map< iv::comms::eLomLine, iv::types::timestamp > > & | lastHeartbeats | ) |
iv::model::eShipArea & iv::diamar::Station::shipArea | ( | ) |
iv::types::stationId & iv::diamar::Station::stationId | ( | ) |
Station::Settings & iv::diamar::Station::stationSettings | ( | ) |
iv::types::unitId & iv::diamar::Station::stationUnitId | ( | ) |
DO NOT USE THIS FIELD FOR ANYTHING OTHER THAN LOMs COMMUNICATION
void iv::diamar::Station::update | ( | const Station & | other | ) |
iv::types::timestamp iv::diamar::Station::lastHeartbeat |
Timestamp of the last station heartbeat received from the station
|
private |
|
private |
|
private |
|
private |
Station communication failure channel
|
private |
Station heartbeat channel
|
private |
|
private |
This field is used to mantain compatibilty with slim, please do NOT use for anything other than LOMs communication.
|
private |
|
private |
Timestamp of the last unit heartbeat