src: Replace LSA string literals with constants
refs: #2310
Change-Id: I0823c320400fe03b6268982cec05578c04d82ca8
diff --git a/src/communication/sync-logic-handler.cpp b/src/communication/sync-logic-handler.cpp
index 94ac76b..4725c9b 100644
--- a/src/communication/sync-logic-handler.cpp
+++ b/src/communication/sync-logic-handler.cpp
@@ -117,11 +117,6 @@
const std::string SyncUpdate::NLSR_COMPONENT = "NLSR";
const std::string SyncUpdate::LSA_COMPONENT = "LSA";
-const std::string SyncLogicHandler::NAME_COMPONENT = "name";
-const std::string SyncLogicHandler::ADJACENCY_COMPONENT = "adjacency";
-const std::string SyncLogicHandler::COORDINATE_COMPONENT = "coordinate";
-
-
template<class T>
class NullDeleter
{
@@ -198,22 +193,22 @@
update.getSequencingManager().writeLog();
try {
- if (isLsaNew(originRouter, NAME_COMPONENT, update.getNameLsaSeqNo())) {
+ if (isLsaNew(originRouter, NameLsa::TYPE_STRING, update.getNameLsaSeqNo())) {
_LOG_DEBUG("Received sync update with higher Name LSA sequence number than entry in LSDB");
- expressInterestForLsa(update, NAME_COMPONENT, update.getNameLsaSeqNo());
+ expressInterestForLsa(update, NameLsa::TYPE_STRING, update.getNameLsaSeqNo());
}
- if (isLsaNew(originRouter, ADJACENCY_COMPONENT, update.getAdjLsaSeqNo())) {
+ if (isLsaNew(originRouter, AdjLsa::TYPE_STRING, update.getAdjLsaSeqNo())) {
_LOG_DEBUG("Received sync update with higher Adj LSA sequence number than entry in LSDB");
- expressInterestForLsa(update, ADJACENCY_COMPONENT, update.getAdjLsaSeqNo());
+ expressInterestForLsa(update, AdjLsa::TYPE_STRING, update.getAdjLsaSeqNo());
}
- if (isLsaNew(originRouter, COORDINATE_COMPONENT, update.getCorLsaSeqNo())) {
+ if (isLsaNew(originRouter, CoordinateLsa::TYPE_STRING, update.getCorLsaSeqNo())) {
_LOG_DEBUG("Received sync update with higher Cor LSA sequence number than entry in LSDB");
- expressInterestForLsa(update, COORDINATE_COMPONENT, update.getCorLsaSeqNo());
+ expressInterestForLsa(update, CoordinateLsa::TYPE_STRING, update.getCorLsaSeqNo());
}
}
catch (std::exception& e) {
@@ -230,15 +225,15 @@
ndn::Name lsaKey = originRouter;
lsaKey.append(lsaType);
- if (lsaType == NAME_COMPONENT)
+ if (lsaType == NameLsa::TYPE_STRING)
{
return m_lsdb.isNameLsaNew(lsaKey, seqNo);
}
- else if (lsaType == ADJACENCY_COMPONENT)
+ else if (lsaType == AdjLsa::TYPE_STRING)
{
return m_lsdb.isAdjLsaNew(lsaKey, seqNo);
}
- else if (lsaType == COORDINATE_COMPONENT)
+ else if (lsaType == CoordinateLsa::TYPE_STRING)
{
return m_lsdb.isCoordinateLsaNew(lsaKey, seqNo);
}
diff --git a/src/communication/sync-logic-handler.hpp b/src/communication/sync-logic-handler.hpp
index 6a2c443..6f0726c 100644
--- a/src/communication/sync-logic-handler.hpp
+++ b/src/communication/sync-logic-handler.hpp
@@ -97,9 +97,6 @@
private:
static const std::string NLSR_COMPONENT;
static const std::string LSA_COMPONENT;
- static const std::string NAME_COMPONENT;
- static const std::string ADJACENCY_COMPONENT;
- static const std::string COORDINATE_COMPONENT;
};
diff --git a/src/lsa.cpp b/src/lsa.cpp
index 99b69a8..8b15741 100644
--- a/src/lsa.cpp
+++ b/src/lsa.cpp
@@ -42,11 +42,15 @@
using namespace std;
+const std::string NameLsa::TYPE_STRING = "name";
+const std::string AdjLsa::TYPE_STRING = "adjacency";
+const std::string CoordinateLsa::TYPE_STRING = "coordinate";
+
const ndn::Name
NameLsa::getKey() const
{
ndn::Name key = m_origRouter;
- key.append("name");
+ key.append(NameLsa::TYPE_STRING);
return key;
}
@@ -68,7 +72,7 @@
NameLsa::getData()
{
string nameLsaData;
- nameLsaData = m_origRouter.toUri() + "|" + "name" + "|"
+ nameLsaData = m_origRouter.toUri() + "|" + NameLsa::TYPE_STRING + "|"
+ boost::lexical_cast<std::string>(m_lsSeqNo) + "|"
+ ndn::time::toIsoString(m_expirationTimePoint);
nameLsaData += "|";
@@ -144,7 +148,7 @@
CoordinateLsa::getKey() const
{
ndn::Name key = m_origRouter;
- key.append("coordinate");
+ key.append(CoordinateLsa::TYPE_STRING);
return key;
}
@@ -162,7 +166,7 @@
{
string corLsaData;
corLsaData = m_origRouter.toUri() + "|";
- corLsaData += "coordinate";
+ corLsaData += CoordinateLsa::TYPE_STRING;
corLsaData += "|";
corLsaData += (boost::lexical_cast<std::string>(m_lsSeqNo) + "|");
corLsaData += (ndn::time::toIsoString(m_expirationTimePoint) + "|");
@@ -228,7 +232,7 @@
AdjLsa::getKey() const
{
ndn::Name key = m_origRouter;
- key.append("adjacency");
+ key.append(AdjLsa::TYPE_STRING);
return key;
}
@@ -243,7 +247,7 @@
AdjLsa::getData()
{
string adjLsaData;
- adjLsaData = m_origRouter.toUri() + "|" + "adjacency" + "|"
+ adjLsaData = m_origRouter.toUri() + "|" + AdjLsa::TYPE_STRING + "|"
+ boost::lexical_cast<std::string>(m_lsSeqNo) + "|"
+ ndn::time::toIsoString(m_expirationTimePoint);
adjLsaData += "|";
diff --git a/src/lsa.hpp b/src/lsa.hpp
index 2137069..6ba85c9 100644
--- a/src/lsa.hpp
+++ b/src/lsa.hpp
@@ -120,7 +120,7 @@
: Lsa()
, m_npl()
{
- setLsType("name");
+ setLsType(NameLsa::TYPE_STRING);
}
NameLsa(const ndn::Name& origR, const std::string& lst, uint32_t lsn,
@@ -159,7 +159,8 @@
private:
NamePrefixList m_npl;
-
+public:
+ static const std::string TYPE_STRING;
};
class AdjLsa: public Lsa
@@ -169,7 +170,7 @@
: Lsa()
, m_adl()
{
- setLsType("adjacency");
+ setLsType(AdjLsa::TYPE_STRING);
}
AdjLsa(const ndn::Name& origR, const std::string& lst, uint32_t lsn,
@@ -218,6 +219,9 @@
private:
uint32_t m_noLink;
AdjacencyList m_adl;
+
+public:
+ static const std::string TYPE_STRING;
};
class CoordinateLsa: public Lsa
@@ -228,7 +232,7 @@
, m_corRad(0)
, m_corTheta(0)
{
- setLsType("coordinate");
+ setLsType(CoordinateLsa::TYPE_STRING);
}
CoordinateLsa(const ndn::Name& origR, const std::string lst, uint32_t lsn,
@@ -278,6 +282,8 @@
double m_corRad;
double m_corTheta;
+public:
+ static const std::string TYPE_STRING;
};
}//namespace nlsr
diff --git a/src/lsdb.cpp b/src/lsdb.cpp
index ce7c706..42f0f16 100644
--- a/src/lsdb.cpp
+++ b/src/lsdb.cpp
@@ -55,7 +55,7 @@
Lsdb::buildAndInstallOwnNameLsa()
{
NameLsa nameLsa(m_nlsr.getConfParameter().getRouterPrefix(),
- "name",
+ NameLsa::TYPE_STRING,
m_nlsr.getSequencingManager().getNameLsaSeq() + 1,
getLsaExpirationTimePoint(),
m_nlsr.getNamePrefixList());
@@ -261,7 +261,7 @@
Lsdb::buildAndInstallOwnCoordinateLsa()
{
CoordinateLsa corLsa(m_nlsr.getConfParameter().getRouterPrefix(),
- "coordinate",
+ CoordinateLsa::TYPE_STRING,
m_nlsr.getSequencingManager().getCorLsaSeq() + 1,
getLsaExpirationTimePoint(),
m_nlsr.getConfParameter().getCorR(),
@@ -443,7 +443,7 @@
}
else {
ndn::Name key = m_nlsr.getConfParameter().getRouterPrefix();
- key.append("adjacency");
+ key.append(AdjLsa::TYPE_STRING);
removeAdjLsa(key);
m_nlsr.getRoutingTable().scheduleRoutingTableCalculation(m_nlsr);
}
@@ -563,7 +563,7 @@
Lsdb::buildAndInstallOwnAdjLsa()
{
AdjLsa adjLsa(m_nlsr.getConfParameter().getRouterPrefix(),
- "adjacency",
+ AdjLsa::TYPE_STRING,
m_nlsr.getSequencingManager().getAdjLsaSeq() + 1,
getLsaExpirationTimePoint(),
m_nlsr.getAdjacencyList().getNumOfActiveNeighbor(),
@@ -787,13 +787,13 @@
std::string interestedLsType = interestName[-2].toUri();
- if (interestedLsType == "name") {
+ if (interestedLsType == NameLsa::TYPE_STRING) {
processInterestForNameLsa(interest, originRouter.append(interestedLsType), seqNo);
}
- else if (interestedLsType == "adjacency") {
+ else if (interestedLsType == AdjLsa::TYPE_STRING) {
processInterestForAdjacencyLsa(interest, originRouter.append(interestedLsType), seqNo);
}
- else if (interestedLsType == "coordinate") {
+ else if (interestedLsType == CoordinateLsa::TYPE_STRING) {
processInterestForCoordinateLsa(interest, originRouter.append(interestedLsType), seqNo);
}
else {
@@ -913,13 +913,13 @@
std::string interestedLsType = dataName[-3].toUri();
- if (interestedLsType == "name") {
+ if (interestedLsType == NameLsa::TYPE_STRING) {
processContentNameLsa(originRouter.append(interestedLsType), seqNo, dataContent);
}
- else if (interestedLsType == "adjacency") {
+ else if (interestedLsType == AdjLsa::TYPE_STRING) {
processContentAdjacencyLsa(originRouter.append(interestedLsType), seqNo, dataContent);
}
- else if (interestedLsType == "coordinate") {
+ else if (interestedLsType == CoordinateLsa::TYPE_STRING) {
processContentCoordinateLsa(originRouter.append(interestedLsType), seqNo, dataContent);
}
else {
@@ -1040,13 +1040,13 @@
bool
Lsdb::doesLsaExist(const ndn::Name& key, const std::string& lsType)
{
- if (lsType == "name") {
+ if (lsType == NameLsa::TYPE_STRING) {
return doesNameLsaExist(key);
}
- else if (lsType == "adjacency") {
+ else if (lsType == AdjLsa::TYPE_STRING) {
return doesAdjLsaExist(key);
}
- else if (lsType == "coordinate") {
+ else if (lsType == CoordinateLsa::TYPE_STRING) {
return doesCoordinateLsaExist(key);
}
return false;
diff --git a/src/route/name-prefix-table.cpp b/src/route/name-prefix-table.cpp
index d9c63e4..1d8a90c 100644
--- a/src/route/name-prefix-table.cpp
+++ b/src/route/name-prefix-table.cpp
@@ -85,12 +85,12 @@
ndn::Name destRouter = rte.getDestination();
(*it).removeRoutingTableEntry(rte);
if (((*it).getRteListSize() == 0) &&
- (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/name"),
- std::string("name"))) &&
- (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/adjacency"),
- std::string("adjacency"))) &&
- (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/coordinate"),
- std::string("coordinate")))) {
+ (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/" + NameLsa::TYPE_STRING),
+ (NameLsa::TYPE_STRING))) &&
+ (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/" + AdjLsa::TYPE_STRING),
+ (AdjLsa::TYPE_STRING))) &&
+ (!m_nlsr.getLsdb().doesLsaExist(destRouter.append("/" + CoordinateLsa::TYPE_STRING),
+ (CoordinateLsa::TYPE_STRING)))) {
m_table.erase(it);
m_nlsr.getFib().remove(name);
}
diff --git a/tests/test-hyperbolic-calculator.cpp b/tests/test-hyperbolic-calculator.cpp
index 65b0ad2..5387ffd 100644
--- a/tests/test-hyperbolic-calculator.cpp
+++ b/tests/test-hyperbolic-calculator.cpp
@@ -68,10 +68,10 @@
adjacencies.insert(b);
adjacencies.insert(c);
- AdjLsa adjA(a.getName(), "adjacency", 1, MAX_TIME, 2, adjacencies);
+ AdjLsa adjA(a.getName(), AdjLsa::TYPE_STRING, 1, MAX_TIME, 2, adjacencies);
lsdb.installAdjLsa(adjA);
- CoordinateLsa coordA(adjA.getOrigRouter(), "coordinate", 1, MAX_TIME, 16.23, 2.97);
+ CoordinateLsa coordA(adjA.getOrigRouter(), CoordinateLsa::TYPE_STRING, 1, MAX_TIME, 16.23, 2.97);
lsdb.installCoordinateLsa(coordA);
// Router B
@@ -82,10 +82,10 @@
adjacencyListB.insert(a);
adjacencyListB.insert(c);
- AdjLsa adjB(b.getName(), "adjacency", 1, MAX_TIME, 2, adjacencyListB);
+ AdjLsa adjB(b.getName(), AdjLsa::TYPE_STRING, 1, MAX_TIME, 2, adjacencyListB);
lsdb.installAdjLsa(adjB);
- CoordinateLsa coordB(adjB.getOrigRouter(), "coordinate", 1, MAX_TIME, 16.59, 3.0);
+ CoordinateLsa coordB(adjB.getOrigRouter(), CoordinateLsa::TYPE_STRING, 1, MAX_TIME, 16.59, 3.0);
lsdb.installCoordinateLsa(coordB);
// Router C
@@ -96,10 +96,10 @@
adjacencyListC.insert(a);
adjacencyListC.insert(b);
- AdjLsa adjC(c.getName(), "adjacency", 1, MAX_TIME, 2, adjacencyListC);
+ AdjLsa adjC(c.getName(), AdjLsa::TYPE_STRING, 1, MAX_TIME, 2, adjacencyListC);
lsdb.installAdjLsa(adjC);
- CoordinateLsa coordC(adjC.getOrigRouter(), "coordinate", 1, MAX_TIME, 14.11, 2.99);
+ CoordinateLsa coordC(adjC.getOrigRouter(), CoordinateLsa::TYPE_STRING, 1, MAX_TIME, 14.11, 2.99);
lsdb.installCoordinateLsa(coordC);
map.createFromAdjLsdb(nlsr);
diff --git a/tests/test-lsa.cpp b/tests/test-lsa.cpp
index 50975fa..17abd2b 100644
--- a/tests/test-lsa.cpp
+++ b/tests/test-lsa.cpp
@@ -41,10 +41,10 @@
npl1.insert(s2);
ndn::time::system_clock::TimePoint testTimePoint = ndn::time::system_clock::now();
//lsType is 1 for NameLsa, 3rd arg is seqNo. which will be a random number I just put in 12.
- NameLsa nlsa1("router1", std::string("name"), 12, testTimePoint, npl1);
- NameLsa nlsa2("router2", std::string("name"), 12, testTimePoint, npl1);
+ NameLsa nlsa1("router1", NameLsa::TYPE_STRING, 12, testTimePoint, npl1);
+ NameLsa nlsa2("router2", NameLsa::TYPE_STRING, 12, testTimePoint, npl1);
- BOOST_CHECK_EQUAL(nlsa1.getLsType(), "name");
+ BOOST_CHECK_EQUAL(nlsa1.getLsType(), NameLsa::TYPE_STRING);
BOOST_CHECK(nlsa1.getExpirationTimePoint() == nlsa2.getExpirationTimePoint());
@@ -61,10 +61,10 @@
ndn::time::system_clock::TimePoint testTimePoint = ndn::time::system_clock::now();
//For AdjLsa, lsType is 2.
//1 is the number of adjacent in adjacent list.
- AdjLsa alsa1("router1", std::string("adjacency"), 12, testTimePoint, 1, adjList);
- AdjLsa alsa2("router1", std::string("adjacency"), 12, testTimePoint, 1, adjList);
+ AdjLsa alsa1("router1", AdjLsa::TYPE_STRING, 12, testTimePoint, 1, adjList);
+ AdjLsa alsa2("router1", AdjLsa::TYPE_STRING, 12, testTimePoint, 1, adjList);
- BOOST_CHECK_EQUAL(alsa1.getLsType(), "adjacency");
+ BOOST_CHECK_EQUAL(alsa1.getLsType(), AdjLsa::TYPE_STRING);
BOOST_CHECK_EQUAL(alsa1.getLsSeqNo(), (uint32_t)12);
BOOST_CHECK_EQUAL(alsa1.getExpirationTimePoint(), testTimePoint);
BOOST_CHECK_EQUAL(alsa1.getNoLink(), (uint32_t)1);
@@ -81,8 +81,8 @@
{
ndn::time::system_clock::TimePoint testTimePoint = ndn::time::system_clock::now();
//For CoordinateLsa, lsType is 3.
- CoordinateLsa clsa1("router1", std::string("coordinate"), 12, testTimePoint, 2.5, 30.0);
- CoordinateLsa clsa2("router1", std::string("coordinate"), 12, testTimePoint, 2.5, 30.0);
+ CoordinateLsa clsa1("router1", CoordinateLsa::TYPE_STRING, 12, testTimePoint, 2.5, 30.0);
+ CoordinateLsa clsa2("router1", CoordinateLsa::TYPE_STRING, 12, testTimePoint, 2.5, 30.0);
BOOST_CHECK_CLOSE(clsa1.getCorRadius(), 2.5, 0.0001);
BOOST_CHECK_CLOSE(clsa1.getCorTheta(), 30.0, 0.0001);
diff --git a/tests/test-lsdb.cpp b/tests/test-lsdb.cpp
index d0508e1..b36d0c6 100644
--- a/tests/test-lsdb.cpp
+++ b/tests/test-lsdb.cpp
@@ -173,18 +173,18 @@
//For NameLsa lsType is name.
//12 is seqNo, randomly generated.
//1800 is the default life time.
- NameLsa nlsa1(ndn::Name("/router1/1"), std::string("name"), 12, testTimePoint, npl1);
+ NameLsa nlsa1(ndn::Name("/router1/1"), NameLsa::TYPE_STRING, 12, testTimePoint, npl1);
Lsdb lsdb1(nlsr, g_scheduler, nlsr.getSyncLogicHandler());
lsdb1.installNameLsa(nlsa1);
lsdb1.writeNameLsdbLog();
- BOOST_CHECK(lsdb1.doesLsaExist(ndn::Name("/router1/1/name"), std::string("name")));
+ BOOST_CHECK(lsdb1.doesLsaExist(ndn::Name("/router1/1/name"), NameLsa::TYPE_STRING));
lsdb1.removeNameLsa(router1);
- BOOST_CHECK_EQUAL(lsdb1.doesLsaExist(ndn::Name("/router1/1"), std::string("name")), false);
+ BOOST_CHECK_EQUAL(lsdb1.doesLsaExist(ndn::Name("/router1/1"), NameLsa::TYPE_STRING), false);
}
BOOST_AUTO_TEST_CASE(RegisterSyncPrefixOnFirstAdjLsaBuild)
@@ -225,10 +225,10 @@
std::string otherRouter("/ndn/site/%C1.router/other-router");
ndn::time::system_clock::TimePoint MAX_TIME = ndn::time::system_clock::TimePoint::max();
- NameLsa lsa(otherRouter, "name", 1, MAX_TIME, prefixes);
+ NameLsa lsa(otherRouter, NameLsa::TYPE_STRING, 1, MAX_TIME, prefixes);
lsdb.installNameLsa(lsa);
- BOOST_REQUIRE_EQUAL(lsdb.doesLsaExist(otherRouter + "/name", "name"), true);
+ BOOST_REQUIRE_EQUAL(lsdb.doesLsaExist(otherRouter + "/name", NameLsa::TYPE_STRING), true);
NamePrefixList& nameList = lsdb.findNameLsa(otherRouter + "/name")->getNpl();
areNamePrefixListsEqual(nameList, prefixes);
@@ -237,7 +237,7 @@
ndn::Name name3("/ndn/name3");
prefixes.insert(name3);
- NameLsa addLsa(otherRouter, "name", 2, MAX_TIME, prefixes);
+ NameLsa addLsa(otherRouter, NameLsa::TYPE_STRING, 2, MAX_TIME, prefixes);
lsdb.installNameLsa(addLsa);
// Lsa should include name1, name2, and name3
@@ -246,7 +246,7 @@
// Remove a prefix: name2
prefixes.remove(name2);
- NameLsa removeLsa(otherRouter, "name", 3, MAX_TIME, prefixes);
+ NameLsa removeLsa(otherRouter, NameLsa::TYPE_STRING, 3, MAX_TIME, prefixes);
lsdb.installNameLsa(removeLsa);
// Lsa should include name1 and name3
@@ -256,7 +256,7 @@
prefixes.insert(name2);
prefixes.remove(name3);
- NameLsa addAndRemoveLsa(otherRouter, "name", 4, MAX_TIME, prefixes);
+ NameLsa addAndRemoveLsa(otherRouter, NameLsa::TYPE_STRING, 4, MAX_TIME, prefixes);
lsdb.installNameLsa(addAndRemoveLsa);
// Lsa should include name1 and name2
@@ -270,7 +270,7 @@
newPrefixes.insert(name4);
newPrefixes.insert(name5);
- NameLsa newLsa(otherRouter, "name", 5, MAX_TIME, newPrefixes);
+ NameLsa newLsa(otherRouter, NameLsa::TYPE_STRING, 5, MAX_TIME, newPrefixes);
lsdb.installNameLsa(newLsa);
// Lsa should include name4 and name5
diff --git a/tests/test-sync-logic-handler.cpp b/tests/test-sync-logic-handler.cpp
index dddbf1d..e4b6bd0 100644
--- a/tests/test-sync-logic-handler.cpp
+++ b/tests/test-sync-logic-handler.cpp
@@ -87,13 +87,13 @@
BOOST_REQUIRE_EQUAL(interests.size(), 3);
std::vector<ndn::Interest>::iterator it = interests.begin();
- BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + "name/");
+ BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + NameLsa::TYPE_STRING + "/");
++it;
- BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + "adjacency/");
+ BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + AdjLsa::TYPE_STRING + "/");
++it;
- BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + "coordinate/");
+ BOOST_CHECK_EQUAL(it->getName().getPrefix(-1), updateName + CoordinateLsa::TYPE_STRING + "/");
}
BOOST_AUTO_TEST_CASE(NoUpdateForSelf)
@@ -124,17 +124,17 @@
// Install Name LSA
NamePrefixList nameList;
- NameLsa lsa(originRouter, "name", 999, ndn::time::system_clock::TimePoint::max(), nameList);
+ NameLsa lsa(originRouter, NameLsa::TYPE_STRING, 999, ndn::time::system_clock::TimePoint::max(), nameList);
lsdb.installNameLsa(lsa);
// Install Adj LSA
AdjacencyList adjList;
- AdjLsa adjLsa(originRouter, "adjacency", 1000, ndn::time::system_clock::TimePoint::max(),
+ AdjLsa adjLsa(originRouter, AdjLsa::TYPE_STRING, 1000, ndn::time::system_clock::TimePoint::max(),
3 , adjList);
lsdb.installAdjLsa(adjLsa);
// Install Cor LSA
- CoordinateLsa corLsa(originRouter, "coordinate", 1000, ndn::time::system_clock::TimePoint::max(),
+ CoordinateLsa corLsa(originRouter, CoordinateLsa::TYPE_STRING, 1000, ndn::time::system_clock::TimePoint::max(),
0,0);
lsdb.installCoordinateLsa(corLsa);