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