fw+doc: Renaming and extending limit extenstion
SimpleLimits now called PerOutFaceLimits. Also, there is now
PerFibLimits that is inherited from PerOutFaceLimits and implements
additional check.
Also, this commit includes a couple of tricks to improve documentation
of templated classes (PerOutFaceLimits and PerFibLimits). Not ideal, but
much better than before.
diff --git a/model/fw/flooding.cc b/model/fw/flooding.cc
index 6d021ec..b4e94a8 100644
--- a/model/fw/flooding.cc
+++ b/model/fw/flooding.cc
@@ -36,14 +36,20 @@
#include <boost/lambda/bind.hpp>
namespace ll = boost::lambda;
-NS_LOG_COMPONENT_DEFINE ("ndn.fw.Flooding");
-
namespace ns3 {
namespace ndn {
namespace fw {
NS_OBJECT_ENSURE_REGISTERED (Flooding);
-
+
+LogComponent Flooding::g_log = LogComponent (Flooding::GetLogName ().c_str ());
+
+std::string
+Flooding::GetLogName ()
+{
+ return super::GetLogName ()+".Flooding";
+}
+
TypeId Flooding::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::ndn::fw::Flooding")