38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
|
|
#pragma once
|
|
|
|
#ifndef LTMESSAGE_H
|
|
#define LTMESSAGE_H
|
|
|
|
#include "common/transport/msg/MoversightMessage.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class Dispatcher;
|
|
|
|
/**
|
|
* @brief Defines a message to disseminate the lt value of a received message.
|
|
* @author Jan Gäbler, Robert Noack
|
|
* @ingroup Moversight
|
|
* @class LTMessage
|
|
*/
|
|
class LTMessage : public MoversightMessage {
|
|
|
|
public:
|
|
LTMessage();
|
|
LTMessage( const MessageReference& mref, const PeerID& sourceID, const int& sequ, const VirtualLogicalTime& lt);
|
|
LTMessage( const MessageReference& mref, const PeerID& sourceID, const PeerID& lastHopID, const int& sequ, const VirtualLogicalTime& lt);
|
|
LTMessage( const LTMessage& other);
|
|
virtual ~LTMessage();
|
|
|
|
LTMessage* dup() const;
|
|
LTMessage& operator=( const LTMessage& other );
|
|
|
|
void handleReceive( Dispatcher& dis);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /** LTMESSAGE_H **/
|