22 #ifndef NLSR_CONF_PARAMETER_HPP 23 #define NLSR_CONF_PARAMETER_HPP 29 #include <boost/cstdint.hpp> 30 #include <ndn-cxx/face.hpp> 31 #include <ndn-cxx/util/time.hpp> 139 , m_isLog4cxxConfAvailable(false)
146 m_network = networkName;
148 m_chronosyncPrefix.append(
"localhop");
149 m_chronosyncPrefix.append(m_network);
150 m_chronosyncPrefix.append(
"NLSR");
151 m_chronosyncPrefix.append(
"sync");
153 m_lsaPrefix.append(
"localhop");
154 m_lsaPrefix.append(m_network);
155 m_lsaPrefix.append(
"NLSR");
156 m_lsaPrefix.append(
"LSA");
168 m_routerName = routerName;
180 m_siteName = siteName;
192 m_routerPrefix = m_network;
193 m_routerPrefix.append(m_siteName);
194 m_routerPrefix.append(m_routerName);
200 return m_routerPrefix;
207 return m_chronosyncPrefix;
219 m_lsaRefreshTime = lrt;
225 return m_lsaRefreshTime;
231 m_lsaInterestLifetime = lifetime;
234 const ndn::time::seconds&
237 return m_lsaInterestLifetime;
243 m_adjLsaBuildInterval = interval;
249 return m_adjLsaBuildInterval;
255 m_firstHelloInterval = interval;
261 return m_firstHelloInterval;
267 m_routingCalcInterval = interval;
273 return m_routingCalcInterval;
279 m_routerDeadInterval = rdt;
285 return m_routerDeadInterval;
291 m_faceDatasetFetchTries = count;
297 return m_faceDatasetFetchTries;
303 m_faceDatasetFetchInterval = ndn::time::seconds(interval);
306 const ndn::time::seconds
309 return m_faceDatasetFetchInterval;
315 m_logLevel = logLevel;
327 m_interestRetryNumber = irn;
333 return m_interestRetryNumber;
339 m_interestResendTime = irt;
345 return m_interestResendTime;
351 return m_infoInterestInterval;
357 m_infoInterestInterval = iii;
363 m_hyperbolicState = ihc;
369 return m_hyperbolicState;
403 m_maxFacesPerPrefix = mfpp;
409 return m_maxFacesPerPrefix;
439 return m_isLog4cxxConfAvailable;
445 m_log4CxxConfPath = path;
446 m_isLog4cxxConfAvailable =
true;
452 return m_log4CxxConfPath;
461 ndn::Name m_routerName;
462 ndn::Name m_siteName;
465 ndn::Name m_routerPrefix;
466 ndn::Name m_lsaRouterPrefix;
468 ndn::Name m_chronosyncPrefix;
469 ndn::Name m_lsaPrefix;
471 uint32_t m_lsaRefreshTime;
473 uint32_t m_adjLsaBuildInterval;
474 uint32_t m_firstHelloInterval;
475 uint32_t m_routingCalcInterval;
477 uint32_t m_faceDatasetFetchTries;
478 ndn::time::seconds m_faceDatasetFetchInterval;
480 ndn::time::seconds m_lsaInterestLifetime;
481 uint32_t m_routerDeadInterval;
482 std::string m_logLevel;
484 uint32_t m_interestRetryNumber;
485 uint32_t m_interestResendTime;
487 uint32_t m_infoInterestInterval;
489 int32_t m_hyperbolicState;
491 std::vector<double> m_corTheta;
493 uint32_t m_maxFacesPerPrefix;
495 std::string m_logDir;
496 std::string m_seqFileDir;
498 bool m_isLog4cxxConfAvailable;
499 std::string m_log4CxxConfPath;
504 #endif // NLSR_CONF_PARAMETER_HPP uint32_t getInterestResendTime() const
A class to house all the configuration parameters for NLSR.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void setLsaInterestLifetime(const ndn::time::seconds &lifetime)
void setMaxFacesPerPrefix(uint32_t mfpp)
void setRoutingCalcInterval(uint32_t interval)
void setNetwork(const ndn::Name &networkName)
const std::string & getSeqFileDir() const
void setAdjLsaBuildInterval(uint32_t interval)
void setSiteName(const ndn::Name &siteName)
uint32_t getInfoInterestInterval() const
const ndn::Name & getRouterPrefix() const
void setInterestResendTime(uint32_t irt)
void setInfoInterestInterval(uint32_t iii)
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
void setLog4CxxConfPath(const std::string &path)
const std::string & getLogLevel() const
const ndn::time::seconds & getLsaInterestLifetime() const
const std::string & getLog4CxxConfPath() const
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
void setCorTheta(const std::vector< double > &ct)
uint32_t getInterestRetryNumber() const
uint32_t getMaxFacesPerPrefix() const
std::vector< double > getCorTheta() const
const ndn::Name & getLsaPrefix() const
void setRouterName(const ndn::Name &routerName)
void setFaceDatasetFetchInterval(uint32_t interval)
void setLogLevel(const std::string &logLevel)
uint32_t getLsaRefreshTime() const
void setInterestRetryNumber(uint32_t irn)
const ndn::Name & getChronosyncPrefix() const
bool isLog4CxxConfAvailable() const
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint32_t getAdjLsaBuildInterval() const
void setRouterDeadInterval(uint32_t rdt)
void setFirstHelloInterval(uint32_t interval)
void setSeqFileDir(const std::string &ssfd)
uint32_t getFirstHelloInterval() const
void setLsaRefreshTime(uint32_t lrt)
uint32_t getFaceDatasetFetchTries() const
const ndn::Name & getNetwork() const
void setHyperbolicState(int32_t ihc)
void setFaceDatasetFetchTries(uint32_t count)
const ndn::Name & getRouterName() const
int32_t getHyperbolicState() const
uint32_t getRoutingCalcInterval() const
void setLogDir(const std::string &logDir)
const ndn::Name & getSiteName() const
const ndn::time::seconds getFaceDatasetFetchInterval() const
uint32_t getRouterDeadInterval() const
const std::string & getLogDir() const
void writeLog()
Dump the current state of all attributes to the log.