50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
/*
|
|
* File: CausalTransfer.cc
|
|
* Author: jgaebler
|
|
*
|
|
* Created on July 26, 2012, 4:00 PM
|
|
*/
|
|
|
|
#include "CausalTransfer.h"
|
|
|
|
#include "Dispatcher.h"
|
|
#include "Moversight.h"
|
|
|
|
//#include "ct/msg/CausalMessage.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
#undef DEBUG
|
|
#define DEBUG(msg) if (module.isPrintDebugCT()) MOV_DEBUG << "CT@" << getLocalID()<< " "<<msg<<endl;
|
|
|
|
/**
|
|
* @brief Constructor
|
|
* @param d A reference to the moversight dispatcher.
|
|
*/
|
|
CausalTransfer::CausalTransfer(Dispatcher & dis) : MoversightService(dis, "CausalTransfer") {
|
|
}
|
|
|
|
/**
|
|
* @brief Destructor
|
|
*/
|
|
CausalTransfer::~CausalTransfer() {
|
|
}
|
|
|
|
/**
|
|
* @brief Initialize service.
|
|
*/
|
|
void
|
|
CausalTransfer::initialise() {
|
|
}
|
|
|
|
/**
|
|
* @brief Finish the operation of the service.
|
|
*/
|
|
void
|
|
CausalTransfer::finalise() {
|
|
dispatcher.unsubscribeAll(this);
|
|
}
|
|
}
|
|
}
|