SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
minhton::MessageReplacementUpdate Class Reference

More...

#include <replacement_update.h>

Inheritance diagram for minhton::MessageReplacementUpdate:
minhton::MinhtonMessage< MessageReplacementUpdate >

Public Member Functions

 MessageReplacementUpdate (MinhtonMessageHeader header, NodeInfo removed_position_node, NodeInfo replaced_position_node, LogicalNodeInfo new_l_node_info, bool should_acknowledge=false)
 
NodeInfo getRemovedPositionNode () const
 
NodeInfo getReplacedPositionNode () const
 
LogicalNodeInfo getNewLogicalNodeInfo () const
 
bool getShouldAcknowledge () const
 
 SERIALIZE (header_, removed_position_node_, replaced_position_node_, new_l_node_info_, should_acknowledge_)
 
- Public Member Functions inherited from minhton::MinhtonMessage< MessageReplacementUpdate >
MinhtonMessageHeader getHeader () const
 
NodeInfo getSender () const
 
NodeInfo getTarget () const
 
void setTarget (NodeInfo new_target)
 
MessageReplacementUpdate getFullMessage () const
 

Detailed Description

Constructor & Destructor Documentation

◆ MessageReplacementUpdate()

minhton::MessageReplacementUpdate::MessageReplacementUpdate ( MinhtonMessageHeader  header,
NodeInfo  removed_position_node,
NodeInfo  replaced_position_node,
LogicalNodeInfo  new_l_node_info,
bool  should_acknowledge = false 
)
Parameters
removed_position_nodeThe node who is replacing and who's position will be empty afterwards.
replaced_position_nodeThe node who is leaving the network and who's position will be replaced by the replacing node afterwards.
new_l_node_infoThe LogicalNodeInfo that has the replaced position and a new uuid.
should_acknowledgeWhether an acknowledgement should be sent back.

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