00001 /* -*- mode:c++ -*- ******************************************************* 00002 * file: MacControlInfo.h 00003 * 00004 * author: Daniel Willkomm 00005 * 00006 * copyright: (C) 2005 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: - control info to pass next hop to the MAC layer 00019 **************************************************************************/ 00020 00021 #ifndef MACCONTROLINFO_H 00022 #define MACCONTROLINFO_H 00023 00024 #include <omnetpp.h> 00025 00039 class MacControlInfo : public cPolymorphic 00040 { 00041 protected: 00043 int nextHopMac; 00044 00045 public: 00047 MacControlInfo(const int addr) : nextHopMac(addr) {}; 00049 virtual ~MacControlInfo(){}; 00050 00052 virtual const int getNextHopMac() { 00053 return nextHopMac; 00054 }; 00055 00057 virtual void setNextHopMac(const int addr){ 00058 nextHopMac = addr; 00059 }; 00060 }; 00061 00062 00063 #endif