conf-parameter.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24 #include "conf-parameter.hpp"
25 #include "logger.hpp"
26 
27 namespace nlsr {
28 
29 INIT_LOGGER("ConfParameter");
30 
31 void
33 {
34  NLSR_LOG_INFO("Router Name: " << m_routerName);
35  NLSR_LOG_INFO("Site Name: " << m_siteName);
36  NLSR_LOG_INFO("Network: " << m_network);
37  NLSR_LOG_INFO("Router Prefix: " << m_routerPrefix);
38  NLSR_LOG_INFO("ChronoSync sync Prefix: " << m_chronosyncPrefix);
39  NLSR_LOG_INFO("ChronoSync LSA prefix: " << m_lsaPrefix);
40  NLSR_LOG_INFO("Hello Interest retry number: " << m_interestRetryNumber);
41  NLSR_LOG_INFO("Hello Interest resend second: " << m_interestResendTime);
42  NLSR_LOG_INFO("Info Interest interval: " << m_infoInterestInterval);
43  NLSR_LOG_INFO("LSA refresh time: " << m_lsaRefreshTime);
44  NLSR_LOG_INFO("FIB Entry refresh time: " << m_lsaRefreshTime * 2);
45  NLSR_LOG_INFO("LSA Interest lifetime: " << getLsaInterestLifetime());
46  NLSR_LOG_INFO("Router dead interval: " << getRouterDeadInterval());
47  NLSR_LOG_INFO("Max Faces Per Prefix: " << m_maxFacesPerPrefix);
48  NLSR_LOG_INFO("Hyperbolic Routing: " << m_hyperbolicState);
49  NLSR_LOG_INFO("Hyp R: " << m_corR);
50  int i=0;
51  for (auto const& value: m_corTheta) {
52  NLSR_LOG_INFO("Hyp Angle " << i++ << ": "<< value);
53  }
54  NLSR_LOG_INFO("Log Directory: " << m_logDir);
55  NLSR_LOG_INFO("Seq Directory: " << m_seqFileDir);
56 
57  // Event Intervals
58  NLSR_LOG_INFO("Adjacency LSA build interval: " << m_adjLsaBuildInterval);
59  NLSR_LOG_INFO("First Hello Interest interval: " << m_firstHelloInterval);
60  NLSR_LOG_INFO("Routing calculation interval: " << m_routingCalcInterval);
61 }
62 
63 } // namespace nlsr
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
const ndn::time::seconds & getLsaInterestLifetime() const
#define INIT_LOGGER(name)
Definition: logger.hpp:35
#define NLSR_LOG_INFO(x)
Definition: logger.hpp:44
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint32_t getRouterDeadInterval() const
void writeLog()
Dump the current state of all attributes to the log.