//Editor-Info: -*- C++ -*-
//
//Subject:
//
//File:
//
//Version: $Revision: 1.3 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/10 09:34:16 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "bisupstate_awaitrlc.h"

bisupAwaitRLC * bisupAwaitRLC :: _only = 0;

bisupAwaitRLC * bisupAwaitRLC :: instance(void)
{
    if (_only == 0)
    {
        _only = new bisupAwaitRLC;
    }
    return _only;
}

bisupAwaitRLC :: bisupAwaitRLC(void)
    : bisupState()
{
    return;
}

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

void bisupAwaitRLC :: nniRELpduAct(
    nniRELpdu *primitive_,
    pfProtocol *protocol_)
{
    bisupProtocol *protocol = protocolCast(protocol_);
    protocol->releaseCollisionAct(primitive_);
    return;
}

void bisupAwaitRLC :: nniRLCpduAct(
    nniRLCpdu *primitive_,
    pfProtocol *protocol_)
{
    bisupProtocol *protocol = protocolCast(protocol_);
    protocol->stopRLCtimer();
    protocol->sendRELEASEconfToCC(primitive_);
    protocol->changeToIdleState();
    return;
}

void bisupAwaitRLC :: bisupT1bTimeoutAct(
    pfProtocol *protocol_)
{
    bisupProtocol *protocol = protocolCast(protocol_);
    protocol->clearCall(sigCauseValue_NormalUnspecified);
    return;
}
