next up previous contents
Next: CsIHTest.h Up: Inference Handler Programmierbeispiel Previous: CsIRM2Hub.h

CsTestMI.cc

//////////////////////////////////////////////////////////////////////////// 
//
//      Entwurf und Implementierung von Managementszenarien zu verteilten 
//      Kommunikationsanwendungen
//      Diplomarbeit
//      Technische Universitaet Muenchen
//
//      Workfile:               CsTestMI.cc
//      Directory:              /proj/Spectrum3/IHAPI/nwp
//      Original Author:        Alexander Keller
//      Date:                   11/3/93 
//
////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
//
// FILE      
//
//    CsTestMI.cc
//
// DESCRIPTION
//
//    This file contains the model intelligence for the Test Model Type.
//    The Inference Handler CsIHTest is attached to the IRM2Hub Model Type
//    and watches its attribute DeviceCRC (=Counter for bad MAC-frames).
//
////////////////////////////////////////////////////////////////////////////

indentation

#if !defined ( __CSMINODE_H__ )
#include "CsMINode.hmbox
#endif

#if !defined ( __CSIRM2HUB_H__ )
#include "CsIRM2Hub.hmbox
#endif

#if !defined ( __CSIHTEST_H__ )
#include "CsIHTest.hmbox
#endif

static void CsIRM2HubMI( CsMTypeHandle& m_t_handle )
{

// Attach CsIHTest IH to IRM2Hub Model Type

// and if unsuccessful, unattach CsIHTest IH.


CsIHTest $\ast$ test_ih = new CsIHTest( m_t_handle ) ;
if ( test_ih$\rightarrow$get_error() == CsError::FAILURE )
{
CsDelete( test_ih );
}

}

static CsMINode mi_node ( IRM2_TEST_MTYPE, CsIRM2HubMI ) ;


Copyright Munich Network Management Team