//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / MTP3 protocol 
//
//File: mtp3colleague.cpp
//
//Version: $Revision: 1.10 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/04/20 08:36:00 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Timo Pärnänen
//      Petteri Koponen
//
//Description:
//      See the corresponding header file.
//
//Copyright:
//
//
//Licence:
//
//
//History:

#include "pf/messenge.h"
#include "mtp3protocol.h"

mtp3Colleague :: mtp3Colleague(mtp3Protocol *protocol_,
                               ss7Configure &configure_)
    : _protocol(protocol_),
      _configure(configure_)
{
    // State machine is not needed because this is base class for
    // all mtp3 functional blocks.
    return;
}

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

void mtp3Colleague :: setId(pfId id_)
{
    pfProtocol::setId(id_);
    return;
}

//
//Functions: accept methods
//
//Description:
//    Blocks always handle messages synchronously and
//    finally delete accepted messages
//
//

void mtp3Colleague :: accept(pfMessenger *messenger_)
{ 
    // ++TODO++ receivingTrace
    messenger_->apply(getState(), this);
    return;
}

//
//Functions: toXX methods
//
//Description:
//    In this base class toXX methods cotains default action
//    which is error handling
//

void mtp3Colleague :: toLevel2(pfMessenger *)
{
    assert(0);
    return;
}

void mtp3Colleague :: toLevel4(pfMessenger *)
{
    assert(0);
    return;
}

void mtp3Colleague :: toHMDC(pfMessenger *)
{
    assert(0);
    return;
}

void mtp3Colleague :: toHMDT(pfMessenger *)
{
    assert(0);
    return;
}

void mtp3Colleague :: toHMRT(pfMessenger *)
{
    assert(0);
    return;
}
