Files
scandocs/uni/masterarbeit/source/moversight/ms/timer/JoinAbortToInviterTimer.cc
2014-06-30 13:58:10 +02:00

53 lines
1.3 KiB
C++

/*
* File: JoinAbortToInviterTimer.cc
* Author: jgaebler
*
* Created on March 3, 2011, 2:59 PM
*/
#include "JoinAbortToInviterTimer.h"
#include "MembershipService.h"
namespace ubeeme {
namespace moversight {
/**
* @brief Constructor
* @param aMs A reference to the creating membership service.
*/
JoinAbortToInviterTimer::JoinAbortToInviterTimer(MembershipService & aMs) : InvitationTimer(aMs) {
#if OMNETPP
setName("JoinAbortToInviterTimer");
#endif
GenericTime t(JOIN_ABORT_TO_INVITER_TIMEOUT);
setTimeout(t);
}
/**
* @brief Destructor
*/
JoinAbortToInviterTimer::~JoinAbortToInviterTimer() {
}
/**
* @brief Creates a duplicate of that timer
* @return The duplicated timer
*/
JoinAbortToInviterTimer *
JoinAbortToInviterTimer::dup() {
return new JoinAbortToInviterTimer(*this);
}
/**
* @brief If the timer is fired, this method is called and the timer
* handled.
*/
void
JoinAbortToInviterTimer::timeout(){
dynamic_cast<MembershipService &>(service).handleJoinAbortToInviterTimer(this);
}
}
}