//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / NNI SSCF project
//
//File: nsscfstate1_1_1.h
//
//Version: $Revision: 1.5 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/05/26 14:29:50 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications and Multimedia
//
//Author:
//      Juhana Räsänen
//
//Description:
//      State class definition for NNI-SSCF state machine state
//      1/1/1 (Out of Service/Idle) as defined in Q.2140 p. 20
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History:
 

#ifndef __NSSCFSTATE1_1_1_H__
#define __NSSCFSTATE1_1_1_H__

#include "nsscfstate.h"


//
// Class: nsscfOutOfService_Idle
//
// Description:
//     This is the NNI-SSCF state machine state 1/1/1 (Out of Service/Idle)
//     class as defined in Q.2140 p 20. Actions defined in Q.2140 SDL
//     diagrams for this state are defined here, others are inherited
//     from the NNI-SSCF base state (nsscfState).
//

class nsscfOutOfService_Idle : public nsscfState
{
    public:
        static nsscfOutOfService_Idle *instance(void);
        
        // Actions for incoming (N)AAL-primitives from above layer
        virtual void naalSTARTreqAct(
            naalSTARTreq *messenger_,
            pfProtocol *protocol_);
        virtual void naalRETRIEVE_BSNTreqAct(
            naalRETRIEVE_BSNTreq *messenger_,
            pfProtocol *protocol_);
        virtual void naalRETRIEVAL_REQUEST_AND_FSNCreqAct(
            naalRETRIEVAL_REQUEST_AND_FSNCreq *messenger_,
            pfProtocol *protocol_);

        // Actions for incoming AA-signals from lower layer
        virtual void aaESTABLISHindAct(aaESTABLISHind *messenger_,
                                       pfProtocol *protocol_);
        virtual void aaRETRIEVEindAct(aaRETRIEVEind *messenger_,
                                      pfProtocol *protocol_);
        virtual void aaRETRIEVE_COMPLETEindAct(
            aaRETRIEVE_COMPLETEind *messenger_,
            pfProtocol *protocol_);

    protected:
        nsscfOutOfService_Idle(void);
        virtual ~nsscfOutOfService_Idle(void);

    private:
        static nsscfOutOfService_Idle *_only;
};


#endif // __NSSCFSTATE1_1_1_H__

