|
| Unit () |
|
| Unit (iv::types::unitId id, iv::units::eUnitType unitType) |
|
void | update (const iv::units::Unit &other) |
|
bool | load (const iv::file::xml::File &xml) |
|
bool | save (const std::shared_ptr< iv::file::xml::File > &xml) const |
|
std::shared_ptr< Unit > | clone () const |
|
iv::types::unitId | getId () const |
|
std::optional< iv::units::eUnitType > | getType () const |
|
iv::units::UnitInfo & | getUnitInfo () |
|
iv::types::timestamp | getLastHeartbeat () const |
|
bool | hasChannels () const |
|
void | createSystemChannels () |
|
void | initializeChannels (const std::shared_ptr< AbstractProgress > &progress) |
|
std::shared_ptr< iv::channels::AbstractChannel > | extractChannel (iv::types::channelOrder channelOrder) |
|
std::shared_ptr< iv::channels::AbstractChannel > | extractChannel (const iv::types::channelId &channelId) |
|
bool | changeChannelId (const iv::types::channelId &channelId, const iv::types::channelId &newChannelId) |
|
bool | changeChannelOrder (iv::types::channelOrder channelOrder, iv::types::channelOrder newChannelOrder) |
|
bool | deleteChannel (iv::types::channelOrder channelOrder) |
|
bool | deleteChannel (const iv::types::channelId &channelId) |
|
std::weak_ptr< iv::channels::AbstractChannel > | createChannel (iv::channels::eChannelSpecificType channelType, std::optional< iv::types::channelOrder > channelOrder=std::nullopt, const std::optional< iv::types::channelId > &channelId=std::nullopt) |
|
bool | insertChannel (std::shared_ptr< iv::channels::AbstractChannel > channel) |
|
std::weak_ptr< iv::channels::AbstractChannel > | getChannel (iv::types::channelOrder channelOrder) const |
|
std::weak_ptr< iv::channels::AbstractChannel > | getChannel (const iv::types::channelId &channelId) const |
|
std::weak_ptr< iv::channels::AbstractChannel > | getChannelByShipyardTag (const std::string &channelTag) |
|
const std::unordered_map< iv::types::channelId, std::shared_ptr< iv::channels::AbstractChannel > > & | getChannels () const |
|
const std::map< iv::types::channelOrder, std::shared_ptr< iv::channels::AbstractChannel > > & | getActiveChannels (bool refreshCache=false) const |
|
const std::map< iv::types::channelOrder, std::shared_ptr< iv::channels::AbstractChannel > > & | getChannelsByOrder () const |
|
std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > | getActiveChannelsByGroupId (const iv::types::groupId &groupId, bool refreshCache=false) const |
| Get all channels in the unit that belong to the group.
|
|
std::map< iv::types::indexChannel, std::shared_ptr< iv::channels::AbstractChannel > > & | getChannelsByIndex () |
|
std::optional< iv::types::channelOrder > | getFirstFreeChannelOrder (std::optional< iv::channels::eChannelSpecificType > channelType=std::nullopt, const std::optional< std::function< bool(iv::types::channelOrder)> > &addedCondition=std::nullopt) const |
|
std::pair< iv::alarms::eAlarmState, iv::alarms::eAlarmPriority > | calculateUnitAlarmStatePriority () const |
|
void | setOfflineChannel (const std::weak_ptr< iv::channels::AbstractChannel > &offlineChannel) |
|
void | setCanAFailChannel (const std::weak_ptr< iv::channels::AbstractChannel > &canAFailChannel) |
|
void | setCanBFailChannel (const std::weak_ptr< iv::channels::AbstractChannel > &canBFailChannel) |
|
void | setCanCFailChannel (const std::weak_ptr< iv::channels::AbstractChannel > &canCFailChannel) |
|
void | setHeartbeatChannel (const std::weak_ptr< iv::channels::AbstractChannel > &heartbeatChannel) |
|
std::weak_ptr< iv::channels::AbstractChannel > | getOfflineChannel () |
|
std::weak_ptr< iv::channels::AbstractChannel > | getCanAFailChannel () |
|
std::weak_ptr< iv::channels::AbstractChannel > | getCanBFailChannel () |
|
std::weak_ptr< iv::channels::AbstractChannel > | getCanCFailChannel () |
|
std::weak_ptr< iv::channels::AbstractChannel > | getHeartbeatChannel () |
|
void | setLasHeartbeat (iv::comms::eLomLine line, iv::types::timestamp timestamp) |
|
iv::types::timestamp | getLastHeartbeat (iv::comms::eLomLine line) const |
|
bool | isStation () const |
|
bool | isLIM () const |
|
bool | isLOM () const |
|
std::string | getName (bool isNotInProjectUnit=false) const |
|
bool | isOn () const |
|
bool | existsChannel (const iv::types::channelId &channelId) const |
|
bool | isOnOnCanLine (comms::eLomLine line) const |
|
void | prvCreateLomSystemChannels () |
|
void | prvCreateKLimSystemChannels () |
|