//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / UNI
//
//File: unitimeouts.cpp
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/13 13:05:35 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Katajavuori
//      Sami Raatikainen (based on version 1.11)
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "unitimeouts.h"

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


//
// 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: 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;
}

