22 #ifndef NLSR_CONF_PARAMETER_HPP 23 #define NLSR_CONF_PARAMETER_HPP 30 #include <boost/cstdint.hpp> 31 #include <ndn-cxx/face.hpp> 32 #include <ndn-cxx/util/time.hpp> 162 m_routerName = routerName;
174 m_siteName = siteName;
186 m_routerPrefix = m_network;
187 m_routerPrefix.append(m_siteName);
188 m_routerPrefix.append(m_routerName);
194 return m_routerPrefix;
201 return m_chronosyncPrefix;
213 m_lsaRefreshTime = lrt;
219 return m_lsaRefreshTime;
225 m_lsaInterestLifetime = lifetime;
228 const ndn::time::seconds&
231 return m_lsaInterestLifetime;
237 m_adjLsaBuildInterval = interval;
243 return m_adjLsaBuildInterval;
249 m_firstHelloInterval = interval;
255 return m_firstHelloInterval;
261 m_routingCalcInterval = interval;
267 return m_routingCalcInterval;
273 m_routerDeadInterval = rdt;
279 return m_routerDeadInterval;
285 m_faceDatasetFetchTries = count;
291 return m_faceDatasetFetchTries;
297 m_faceDatasetFetchInterval = ndn::time::seconds(interval);
300 const ndn::time::seconds
303 return m_faceDatasetFetchInterval;
309 m_interestRetryNumber = irn;
315 return m_interestRetryNumber;
321 m_interestResendTime = irt;
327 return m_interestResendTime;
333 return m_infoInterestInterval;
339 m_infoInterestInterval = iii;
345 m_hyperbolicState = ihc;
351 return m_hyperbolicState;
385 m_maxFacesPerPrefix = mfpp;
391 return m_maxFacesPerPrefix;
409 m_syncInterestLifetime = ndn::time::milliseconds(syncInterestLifetime);
412 const ndn::time::milliseconds&
415 return m_syncInterestLifetime;
422 ndn::Name m_routerName;
423 ndn::Name m_siteName;
426 ndn::Name m_routerPrefix;
427 ndn::Name m_lsaRouterPrefix;
429 ndn::Name m_chronosyncPrefix;
430 ndn::Name m_lsaPrefix;
432 uint32_t m_lsaRefreshTime;
434 uint32_t m_adjLsaBuildInterval;
435 uint32_t m_firstHelloInterval;
436 uint32_t m_routingCalcInterval;
438 uint32_t m_faceDatasetFetchTries;
439 ndn::time::seconds m_faceDatasetFetchInterval;
441 ndn::time::seconds m_lsaInterestLifetime;
442 uint32_t m_routerDeadInterval;
443 std::string m_logLevel;
445 uint32_t m_interestRetryNumber;
446 uint32_t m_interestResendTime;
448 uint32_t m_infoInterestInterval;
450 int32_t m_hyperbolicState;
452 std::vector<double> m_corTheta;
454 uint32_t m_maxFacesPerPrefix;
456 std::string m_seqFileDir;
457 ndn::time::milliseconds m_syncInterestLifetime;
460 static const uint64_t SYNC_VERSION;
465 #endif // NLSR_CONF_PARAMETER_HPP
uint32_t getInterestResendTime() const
A class to house all the configuration parameters for NLSR.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const ndn::time::milliseconds & getSyncInterestLifetime() const
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
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-2018, The University of Memphis, Regents of the University of California.
const ndn::time::seconds & getLsaInterestLifetime() 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 setSyncInterestLifetime(uint32_t syncInterestLifetime)
void setRouterName(const ndn::Name &routerName)
void setFaceDatasetFetchInterval(uint32_t interval)
uint32_t getLsaRefreshTime() const
void setInterestRetryNumber(uint32_t irn)
const ndn::Name & getChronosyncPrefix() const
Copyright (c) 2014-2018, 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
const ndn::Name & getSiteName() const
const ndn::time::seconds getFaceDatasetFetchInterval() const
uint32_t getRouterDeadInterval() const