![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WNS (Wireless Network Simulator) * 00003 * __________________________________________________________________________ * 00004 * * 00005 * Copyright (C) 2004-2006 * 00006 * Chair of Communication Networks (ComNets) * 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany * 00008 * phone: ++49-241-80-27910 (phone), fax: ++49-241-80-22242 * 00009 * email: wns@comnets.rwth-aachen.de * 00010 * www: http://wns.comnets.rwth-aachen.de * 00011 ******************************************************************************/ 00012 00013 #ifndef GLUE_BERPROVIDER_HPP 00014 #define GLUE_BERPROVIDER_HPP 00015 00016 #include <list> 00017 00018 namespace glue { 00019 00020 class BERConsumer; 00021 00026 class BERProvider 00027 { 00028 public: 00029 typedef std::list<BERConsumer*> BERConsumerContainer; 00030 00034 explicit 00035 BERProvider(); 00036 00040 virtual 00041 ~BERProvider(); 00042 00046 virtual void 00047 attachBERConsumer(BERConsumer* berConsumer); 00048 00052 virtual void 00053 detachBERConsumer(BERConsumer* berConsumer); 00054 00061 void 00062 notifyBERConsumers(double BER, int packetSize) const; 00063 00067 const BERConsumerContainer& 00068 getBERConsumersAttached() const; 00069 00070 private: 00074 BERConsumerContainer berConsumers; 00075 }; 00076 00077 } // glue 00078 00079 #endif // GLUE_BERPROVIDER_HPP 00080 00081
1.5.5