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

BasicDecider.h

00001 /* -*- mode:c++ -*- *******************************************************
00002  * file:        BasicDecider.h
00003  *
00004  * author:      Marc Loebbers
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  **************************************************************************/
00019 
00020 
00021 #ifndef  BASIC_DECIDER_H
00022 #define  BASIC_DECIDER_H
00023 
00024 #include <omnetpp.h>
00025 
00026 #include "BasicModule.h"
00027 #include "AirFrame_m.h"
00028 
00029 
00057 class BasicDecider : public BasicModule
00058 {
00059     Module_Class_Members(BasicDecider,BasicModule,0);
00060 
00061 protected:
00064     int uppergateOut;
00065     int lowergateIn;
00069     bool coreDebug;
00070 
00071 public:
00073     virtual void initialize(int);
00074 
00076     void handleMessage( cMessage* );
00077 
00078 protected:
00090 
00097     virtual void handleSelfMsg(cMessage *msg) = 0;
00098 
00133     virtual void handleLowerMsg(AirFrame*, const SnrList&) = 0;
00134     
00138     void sendUp(cMessage *);
00139 
00141     virtual cMessage* decapsMsg(AirFrame*);
00142 
00143 
00144 };
00145 #endif
00146 
00147 

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