//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project/CC
//
//File: ccodp_midcall.cpp
//
//Version: $Revision: 1.7 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/11/11 16:09:53 $
//
//Organisation:
//      University of Technology
// 
//Author:
//      Pasi Nummisalo
//
//Description:
//     Implementation is for further study.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//      
//Licence:
//     
//
//History:

/*
#include "ccostate_analyse.h"
#include "ccostate_selectroute.h"
#include "ccostate_active.h"
#include "ccostate_collect.h"
#include "protocol/cc/ccprotocol.h"
#include "ccodp_midcall.h"

ccOdpMidCall *ccOdpMidCall :: _only = 0;

ccOdpMidCall :: ccOdpMidCall(void)
{
    return;
}

ccOdpMidCall :: ~ccOdpMidCall(void)
{
    _only = 0;
    return;
}

ccOdpMidCall *ccOdpMidCall :: instance(void)
{
    if(_only == 0)
    {
        _only = new ccOdpMidCall;
        assert(_only != 0);
    }
    return _only;
}

//
//Function: proceed
//
//Description:
//   This function is called from PIC when it is time
//   to check DP criteria. Function reads the right
//   dp object from protocol and passes it to common
//   process function in base class.
//
//

void ccOdpMidCall :: proceed(ccProtocol *protocol_)
{
#if CC_DEBUG
traceDp(ccCC,"Mid Call");
#endif
    
    process(protocol_->getDpValueObject(ccDpMidCall), protocol_);

    return;
}

toveinap_EventTypeBCSMType ccOdpMidCall :: getInapType(void) const
{
    return toveinap_oMidCall;
}

//
//Function: toNextState
//
//Description:
//    
//
//

void ccOdpMidCall :: toNextState(ccDp &, ccProtocol *protocol_)
{
    exitAction(protocol_, ccOstateActive::instance());
    
    return;
}

//
//Function:
//
//Description:
//
//
//

void ccOdpMidCall :: binapSELECT_ROUTEpduAct(
    binapSELECT_ROUTEpdu *,
    ccProtocol *protocol_)
{
    exitAction(protocol_, ccOstateSelectRoute::instance());

    return;
}

//
//Functions: binap-inputs
//
//Description: see base class
//
//

void ccOdpMidCall :: binapANALYSE_INFORMATIONpduAct(
    binapANALYSE_INFORMATIONpdu *,
    ccProtocol *protocol_)
{
    exitAction(protocol_, ccOstateAnalyseInformation::instance());

    return;    
}

void ccOdpMidCall :: binapCOLLECT_INFORMATIONpduAct(
    binapCOLLECT_INFORMATIONpdu *,
    ccProtocol *protocol_)
{
    exitAction(protocol_, ccOstateCollectInformation::instance());

    return;
}

void ccOdpMidCall :: binapCONTINUEpduAct(
    binapCONTINUEpdu *,
    ccProtocol *protocol_)
{
    
    // Is there more TDP-Rs?
    processTDP_R(protocol_->
                 getDpValueObject(ccDpMidCall), protocol_);

    return;
}
*/
