//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / BISUP
//
//File: bisupmode.cpp
//
//Version: $Revision: 1.8 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/08 07:42:30 $
//
//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 "bisupmode.h"
#include "bisupprotocol.h"
#include "bisupstate_idle.h"
#include "bisupstate_awaitiaa.h"
#include "bisupstate_awaitacm.h"
#include "bisupstate_awaitanm.h"
#include "bisupstate_awaitacceptedreq.h"
#include "bisupstate_awaitaddresscompreq.h"
#include "bisupstate_awaitanswerreq.h"
#include "bisupstate_callanswered.h"
#include "bisupstate_awaitrlc.h"
#include "bisupstate_awaitreleaseresp.h"
#include "bisupstate_relcollision.h"


bisupMode *bisupMode :: _only = 0;

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

bisupMode :: bisupMode(void)
    : sigMode()
{
    return;
}

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

pfState *bisupMode :: createIdleState(void)
{
    pfState *state = bisupIdle::instance();
    return state;
}

pfState *bisupMode :: createAwaitIAAState(void)
{
    pfState *state = bisupAwaitIAA::instance();
    return state;
}

pfState *bisupMode :: createAwaitACMState(void)
{
    pfState *state = bisupAwaitACM::instance();
    return state;
}

pfState *bisupMode :: createAwaitANMState(void)
{
    pfState *state = bisupAwaitANM::instance();
    return state;
}

pfState *bisupMode :: createAwaitAcceptedReqState(void)
{
    pfState *state = bisupAwaitAcceptedReq::instance();
    return state;
}

pfState *bisupMode :: createAwaitAnswerReqState(void)
{
    pfState *state = bisupAwaitAnswerReq::instance();
    return state;
}

pfState *bisupMode :: createAwaitAddressCompReqState(void)
{
    pfState *state = bisupAwaitAddressCompReq::instance();
    return state;
}

pfState *bisupMode :: createCallAnsweredState(void)
{
    pfState *state = bisupCallAnswered::instance();
    return state;
}

pfState *bisupMode :: createAwaitRLCState(void)
{
    pfState *state = bisupAwaitRLC::instance();
    return state;
}

pfState *bisupMode :: createReleaseRespState(void)
{
    pfState *state = bisupAwaitReleaseResp::instance();
    return state;
}

pfState *bisupMode :: createRELCollisionState(void)
{
    pfState *state = bisupRELCollision::instance();
    return state;
}
