/* * 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(service).handleJoinAbortToInviterTimer(this); } } }