//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project/CC
//
//File: ccodp_collectdinfo.h
//
//Version: $Revision: 1.6 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/11/11 14:56:17 $
//
//Organisation:
//      University of Technology
// 
//Author:
//      Pasi Nummisalo
//
//Description:
//     
//
//Copyright:
//     University of Technology
//     Laboratory of Telecommunications and Multimedia 
//      
//Licence:
//     
//
//History:
//

#include "protocol/cc/ccdpstate.h"

#ifndef __CC_O_DP_COLLECTED_INFO_H__
#define __CC_O_DP_COLLECTED_INFO_H__

class ccOdpCollectedInformation : public ccDpState
{
    public:
        static ccOdpCollectedInformation *instance();
        
        void proceed(ccProtocol *protocol_);

        toveinap_EventTypeBCSMType getInapType(void) const;
        string getType(void) const;
        ccIf_TriggersType allowedTriggers(void) const;        

        void binapCONTINUEpduAct(binapCONTINUEpdu *messenger_,
                                 ccProtocol *protocol_);
        
        void binapCOLLECT_INFORMATIONpduAct(
            binapCOLLECT_INFORMATIONpdu *messenger_,
            ccProtocol *protocol_);

        void binapANALYSE_INFORMATIONpduAct(
            binapANALYSE_INFORMATIONpdu *messenger_,
            ccProtocol *protocol_);

        void binapSELECT_ROUTEpduAct(
            binapSELECT_ROUTEpdu *messenger_,
            ccProtocol *protocol_);

    protected:
        ccOdpCollectedInformation(void);
        ~ccOdpCollectedInformation(void);
        
        void toNextState(ccDp &dp_, ccProtocol *protocol_);
        
    private:
        static ccOdpCollectedInformation *_only;

};

#endif


 
