//Editor-Info: -*- C++ -*-
//
//Subject: SCOMS project / 
//
//File: nnimessage.cpp
//
//Version: $Revision: 1.3 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/08 09:07:19 $
//
//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 "nnimessages.h"
#include "pf/error.h"

// ---------------------------------------------------
nniMessage :: nniMessage(void)
    : pfMessenger()
{
    return;
}

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


// ---------------------------------------------------
nniACMpdu :: nniACMpdu(void)
    : nniMessage()
{
    return;
}

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

void nniACMpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniACMpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniANMpdu :: nniANMpdu(void)
    : nniMessage()
{
    return;
}

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

void nniANMpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniANMpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniCPGpdu :: nniCPGpdu(void)
    : nniMessage()
{
    return;
}

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

void nniCPGpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniCPGpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniIAMpdu :: nniIAMpdu(void)
    : nniMessage()
{
    return;
}

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

void nniIAMpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniIAMpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniIAApdu :: nniIAApdu(void)
    : nniMessage()
{
    return;
}

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

void nniIAApdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniIAApduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniIARpdu :: nniIARpdu(void)
    : nniMessage()
{
    return;
}

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

void nniIARpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniIARpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniRELpdu :: nniRELpdu(void)
    : nniMessage()
{
    return;
}

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

void nniRELpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniRELpduAct(this, protocol_);
    return;
}


// ---------------------------------------------------
nniRLCpdu :: nniRLCpdu(void)
    : nniMessage()
{
    return;
}

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

void nniRLCpdu :: apply(pfState *state_, pfProtocol *protocol_)
{
    nniMessageInputs *input = dynamic_cast<nniMessageInputs*>(state_);
    THROW_IF_DYNAMIC_CAST_FAILED(input);
    input->nniRLCpduAct(this, protocol_);
    return;
}
