//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / BISUP
//
//File: bisupstate_null.cpp
//
//Version: $Revision: 1.7 $
//
//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_idle.h"

bisupIdle *bisupIdle :: _only = 0;

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

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

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

void bisupIdle :: sigSETUPreqAct(
    sigSETUPreq *primitive_,
    pfProtocol *protocol_)
{
    bisupProtocol *protocol = protocolCast(protocol_);
    protocol->changeToAwaitIAAState();
    protocol->startIAAtimer();
    protocol->sendIAMpduToDown(primitive_);
    return;
}

void bisupIdle :: nniIAMpduAct(
    nniIAMpdu *primitive_,
    pfProtocol *protocol_)
{
    bisupProtocol *protocol = protocolCast(protocol_);
    protocol->createConduitsConnection();
    protocol->changeToAwaitAcceptedReqState();
    protocol->sendSETUPindToCC(primitive_);
    return;
}
