//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / gsmpSwitch
//
//File: gsmpSwitchstate.cpp
//
//Version: $Revision: 1.1 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/08/03 11:40:43 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      See the corresponding header file.
//
//Copyright:
//
//
//Licence:
//
//
//History: 


#include "pf/protocol.h"
#include "gsmpswitchstate.h"


gsmpSwitchState::gsmpSwitchState(void)
{
    return;
}

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

void gsmpSwitchState :: gsmpLinkEstablishedAct(gsmpLinkEstablished *,
                                               pfProtocol *protocol_)
{
    gsmpSwitchProtocol *protocol =
        dynamic_cast<gsmpSwitchProtocol *>(protocol_);
    if (protocol != 0)
    {
        protocol->toGsmpSwitchActiveState();
    }
    return;
}

void gsmpSwitchState :: gsmpLinkNotEstablishedAct(gsmpLinkEstablished *,
                                                  pfProtocol *protocol_)
{
    gsmpSwitchProtocol *protocol =
        dynamic_cast<gsmpSwitchProtocol *>(protocol_);
    if (protocol != 0)
    {
        protocol->toGsmpSwitchIdleState();
    }
    return;
}









