//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / UNI
//
//File: unitimeouts.cpp
//
//Version: $Revision: 1.11 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/10/10 15:57:13 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Katajavuori
//
//Description:
//      This file contains all timer messengers used with uni.
//
//Copyright:
//
//
//Licence:
//
//
//History: 

#include "unitimeouts.h"

#include "pf/state.h"
#include "pf/protocol.h"

//
// Class: uniT301timeout
//
// Description:
//      Timer T301 is started when SETUP is sent.
//

pfTimerMessenger *uniT301timeout :: create(void)
{
    uniT301timeout *messenger = new uniT301timeout;
    return messenger;
}

uniT301timeout :: uniT301timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT301timeout :: uniT301timeout(const uniT301timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT301timeout :: ~uniT301timeout(void)
{
    return;
}

pfTimerMessenger *uniT301timeout :: clone(void) const
{
    uniT301timeout *messenger = new uniT301timeout(*this);
    return messenger;
}

void uniT301timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT301timeoutAct(protocol_);
    return;
}

//
// Class: uniT303timeout
//
// Description:
//      Timer T303 is started when SETUP is sent.
//

pfTimerMessenger *uniT303timeout :: create(void)
{
    uniT303timeout *messenger = new uniT303timeout;
    return messenger;
}

uniT303timeout :: uniT303timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT303timeout :: uniT303timeout(const uniT303timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT303timeout :: ~uniT303timeout(void)
{
    return;
}

pfTimerMessenger *uniT303timeout :: clone(void) const
{
    uniT303timeout *messenger = new uniT303timeout(*this);
    return messenger;
}

void uniT303timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT303timeoutAct(protocol_);
    return;
}

//
// Class: uniT308timeout
//
// Description:
//      Timer T308 is started when RELEASE is sent.
//

pfTimerMessenger *uniT308timeout :: create(void)
{
    uniT308timeout *messenger = new uniT308timeout;
    return messenger;
}

uniT308timeout :: uniT308timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT308timeout :: uniT308timeout(const uniT308timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT308timeout :: ~uniT308timeout(void)
{
    return;
}

pfTimerMessenger *uniT308timeout :: clone(void) const
{
    uniT308timeout *messenger = new uniT308timeout(*this);
    return messenger;
}

void uniT308timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT308timeoutAct(protocol_);
    return;
}

//
// Class: uniT309timeout
//
// Description:
//      Timer T309 is started when SAAL is disconnected.
//

pfTimerMessenger *uniT309timeout :: create(void)
{
    uniT309timeout *messenger = new uniT309timeout;
    return messenger;
}

uniT309timeout :: uniT309timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT309timeout :: uniT309timeout(const uniT309timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT309timeout :: ~uniT309timeout(void)
{
    return;
}

pfTimerMessenger *uniT309timeout :: clone(void) const
{
    uniT309timeout *messenger = new uniT309timeout(*this);
    return messenger;
}

void uniT309timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniCoOrdTimeoutInputs *input =
        dynamic_cast<uniCoOrdTimeoutInputs*>(state_);
    input->uniT309timeoutAct(protocol_);
    return;
}

//
// Class: uniT310timeout
//
// Description:
//      Timer T310 is started when CALL PROCEEDING is received.
//

pfTimerMessenger *uniT310timeout :: create(void)
{
    uniT310timeout *messenger = new uniT310timeout;
    return messenger;
}

uniT310timeout :: uniT310timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT310timeout :: uniT310timeout(const uniT310timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT310timeout :: ~uniT310timeout(void)
{
    return;
}

pfTimerMessenger *uniT310timeout :: clone(void) const
{
    uniT310timeout *messenger = new uniT310timeout(*this);
    return messenger;
}

void uniT310timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT310timeoutAct(protocol_);
    return;
}

//
// Class: uniT313timeout
//
// Description:
//      Timer T313 is started when CONNECT is sent.
//

pfTimerMessenger *uniT313timeout :: create(void)
{
    uniT313timeout *messenger = new uniT313timeout;
    return messenger;
}

uniT313timeout :: uniT313timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT313timeout :: uniT313timeout(const uniT313timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT313timeout :: ~uniT313timeout(void)
{
    return;
}

pfTimerMessenger *uniT313timeout :: clone(void) const
{
    uniT313timeout *messenger = new uniT313timeout(*this);
    return messenger;
}

void uniT313timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT313timeoutAct(protocol_);
    return;
}

//
// Class: uniT316timeout
//
// Description:
//      Timer T316 is started when RESTART is sent.
//

pfTimerMessenger *uniT316timeout :: create(void)
{
    uniT316timeout *messenger = new uniT316timeout;
    return messenger;
}

uniT316timeout :: uniT316timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT316timeout :: uniT316timeout(const uniT316timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT316timeout :: ~uniT316timeout(void)
{
    return;
}

pfTimerMessenger *uniT316timeout :: clone(void) const
{
    uniT316timeout *messenger = new uniT316timeout(*this);
    return messenger;
}

void uniT316timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniRSNTimeoutInputs *input = dynamic_cast<uniRSNTimeoutInputs*>(state_);
    input->uniT316timeoutAct(protocol_);
    return;
}

//
// Class: uniT317timeout
//
// Description:
//      Timer T317 is started when RESTART is received.
//

pfTimerMessenger *uniT317timeout :: create(void)
{
    uniT317timeout *messenger = new uniT317timeout;
    return messenger;
}

uniT317timeout :: uniT317timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT317timeout :: uniT317timeout(const uniT317timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT317timeout :: ~uniT317timeout(void)
{
    return;
}

pfTimerMessenger *uniT317timeout :: clone(void) const
{
    uniT317timeout *messenger = new uniT317timeout(*this);
    return messenger;
}

void uniT317timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniRRNTimeoutInputs *input = dynamic_cast<uniRRNTimeoutInputs*>(state_);
    input->uniT317timeoutAct(protocol_);
    return;
}

//
// Class: uniT322timeout
//
// Description:
//      Timer T322 is started when STATUS ENQUIRY is sent.
//

pfTimerMessenger *uniT322timeout :: create(void)
{
    uniT322timeout *messenger = new uniT322timeout;
    return messenger;
}

uniT322timeout :: uniT322timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT322timeout :: uniT322timeout(const uniT322timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT322timeout :: ~uniT322timeout(void)
{
    return;
}

pfTimerMessenger *uniT322timeout :: clone(void) const
{
    uniT322timeout *messenger = new uniT322timeout(*this);
    return messenger;
}

void uniT322timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniT322timeoutAct(protocol_);
    return;
}

//
// Class: uniT398timeout
//
// Description:
//      Timer T398 is started when DROP PARTY is sent.
//

pfTimerMessenger *uniT398timeout :: create(void)
{
    uniT398timeout *messenger = new uniT398timeout;
    return messenger;
}

uniT398timeout :: uniT398timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT398timeout :: uniT398timeout(const uniT398timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT398timeout :: ~uniT398timeout(void)
{
    return;
}

pfTimerMessenger *uniT398timeout :: clone(void) const
{
    uniT398timeout *messenger = new uniT398timeout(*this);
    return messenger;
}

void uniT398timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniPMPTimeoutInputs *input = dynamic_cast<uniPMPTimeoutInputs*>(state_);
    input->uniT398timeoutAct(protocol_);
    return;
}

//
// Class: uniT399timeout
//
// Description:
//      Timer T399 is started when ADD PARTY is sent.
//

pfTimerMessenger *uniT399timeout :: create(void)
{
    uniT399timeout *messenger = new uniT399timeout;
    return messenger;
}

uniT399timeout :: uniT399timeout(void)
    : pfTimerMessenger()
{
    return;
}

uniT399timeout :: uniT399timeout(const uniT399timeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniT399timeout :: ~uniT399timeout(void)
{
    return;
}

pfTimerMessenger *uniT399timeout :: clone(void) const
{
    uniT399timeout *messenger = new uniT399timeout(*this);
    return messenger;
}

void uniT399timeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniPMPTimeoutInputs *input = dynamic_cast<uniPMPTimeoutInputs*>(state_);
    input->uniT399timeoutAct(protocol_);
    return;
}

//
// Class: uniTREMOVEDtimeout
//
// Description:
//      Timer TREMOVED is started when ADD PARTY is sent.
//

pfTimerMessenger *uniTREMOVEDtimeout :: create(void)
{
    uniTREMOVEDtimeout *messenger = new uniTREMOVEDtimeout;
    return messenger;
}

uniTREMOVEDtimeout :: uniTREMOVEDtimeout(void)
    : pfTimerMessenger()
{
    return;
}

uniTREMOVEDtimeout :: uniTREMOVEDtimeout(const uniTREMOVEDtimeout &other_)
    : pfTimerMessenger(other_)
{
    return;
}

uniTREMOVEDtimeout :: ~uniTREMOVEDtimeout(void)
{
    return;
}

pfTimerMessenger *uniTREMOVEDtimeout :: clone(void) const
{
    uniTREMOVEDtimeout *messenger = new uniTREMOVEDtimeout(*this);
    return messenger;
}

void uniTREMOVEDtimeout :: apply(pfState *state_, pfProtocol *protocol_)
{
    uniTimeoutInputs *input = dynamic_cast<uniTimeoutInputs*>(state_);
    input->uniTREMOVEDtimeoutAct(protocol_);
    return;
}

