Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

TestApplLayer.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        TestApplLayer.h
00003  *
00004  * author:      Daniel Willkomm
00005  *
00006  * copyright:   (C) 2004 Telecommunication Networks Group (TKN) at
00007  *              Technische Universitaet Berlin, Germany.
00008  *
00009  *              This program is free software; you can redistribute it 
00010  *              and/or modify it under the terms of the GNU General Public 
00011  *              License as published by the Free Software Foundation; either
00012  *              version 2 of the License, or (at your option) any later 
00013  *              version.
00014  *              For further information see file COPYING 
00015  *              in the top level directory
00016  ***************************************************************************
00017  * part of:     framework implementation developed by tkn
00018  * description: application layer: test class for the application layer
00019  **************************************************************************/
00020 
00021 
00022 #ifndef TEST_APPL_LAYER_H
00023 #define TEST_APPL_LAYER_H
00024 
00025 #include "BasicApplLayer.h"
00026 
00027 
00038 class TestApplLayer : public BasicApplLayer
00039 {
00040   public:
00041     Module_Class_Members( TestApplLayer, BasicApplLayer, 0 );
00042 
00044     virtual void initialize(int);
00045     virtual void finish();
00046 
00047     enum APPL_MSG_TYPES{
00048   SEND_BROADCAST_TIMER,
00049   BROADCAST_MESSAGE,
00050   BROADCAST_REPLY_MESSAGE
00051     };
00052 
00053 protected:
00054     cMessage *delayTimer;
00055     
00056 protected:
00058     virtual void handleSelfMsg(cMessage*);
00059 
00061     virtual void handleLowerMsg(cMessage*);
00062   
00064     void sendBroadcast();
00065 
00067     void sendReply(ApplPkt *msg);
00068 };
00069 
00070 #endif

Generated on Fri Jan 12 08:29:32 2007 for Mobility Framework by  doxygen 1.4.4