![]() |
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_TRIGGER_FUNCTIONALUNITLIGHT_HPP 00014 #define GLUE_TRIGGER_FUNCTIONALUNITLIGHT_HPP 00015 00016 #include <WNS/ldk/FunctionalUnit.hpp> 00017 #include <WNS/ldk/CommandTypeSpecifier.hpp> 00018 #include <WNS/ldk/HasReceptor.hpp> 00019 #include <WNS/ldk/HasConnector.hpp> 00020 #include <WNS/ldk/HasDeliverer.hpp> 00021 00022 #include <WNS/Cloneable.hpp> 00023 #include <WNS/Exception.hpp> 00024 00025 namespace glue { namespace trigger { 00026 00027 class FunctionalUnitLight : 00028 virtual public wns::ldk::FunctionalUnit, 00029 public wns::ldk::CommandTypeSpecifier<>, 00030 public wns::ldk::HasReceptor<>, 00031 public wns::ldk::HasConnector<>, 00032 public wns::ldk::HasDeliverer<>, 00033 public wns::Cloneable<FunctionalUnitLight> 00034 { 00035 public: 00036 FunctionalUnitLight(wns::ldk::fun::FUN* fun, const wns::pyconfig::View&) : 00037 wns::ldk::CommandTypeSpecifier<>(fun), 00038 wns::ldk::HasReceptor<>(), 00039 wns::ldk::HasConnector<>(), 00040 wns::ldk::HasDeliverer<>(), 00041 wns::Cloneable<FunctionalUnitLight>() 00042 {} 00043 00044 virtual void 00045 doSendData(const wns::ldk::CompoundPtr&) 00046 { 00047 throw wns::Exception("sendData(...) of FunctionalUnitLight must not be called."); 00048 } // doSendData 00049 00050 virtual void 00051 doOnData(const wns::ldk::CompoundPtr&) 00052 { 00053 throw wns::Exception("onData(...) of FunctionalUnitLight must not be called."); 00054 } // doOnData 00055 00056 private: 00057 virtual bool 00058 doIsAccepting(const wns::ldk::CompoundPtr&) const 00059 { 00060 throw wns::Exception("isAccepting(...) of FunctionalUnitLight must not be called."); 00061 return false; 00062 } // isAccepting 00063 00064 virtual void 00065 doWakeup() 00066 { 00067 throw wns::Exception("wakeup(...) of FunctionalUnitLight must not be called."); 00068 } // wakeup 00069 }; // FunctionalUnitLight 00070 00071 } // trigger 00072 } // glue 00073 00074 #endif // NOT defined GLUE_TRIGGER_FUNCTIONALUNITLIGHT_HPP 00075 00076
1.5.5