Implementing Poisson Process for consumer requests (exponential distribution for inter-arrival times)
diff --git a/model/annotated-topology-reader.cc b/model/annotated-topology-reader.cc
index edcff58..2ca17eb 100644
--- a/model/annotated-topology-reader.cc
+++ b/model/annotated-topology-reader.cc
@@ -52,10 +52,11 @@
NS_LOG_COMPONENT_DEFINE ("AnnotatedTopologyReader");
-AnnotatedTopologyReader::AnnotatedTopologyReader (const std::string &path)
+AnnotatedTopologyReader::AnnotatedTopologyReader (const std::string &path, double scale/*=1.0*/)
: m_path (path)
, m_randX (0, 100.0)
, m_randY (0, 100.0)
+ , m_scale (scale)
{
NS_LOG_FUNCTION (this);
@@ -137,7 +138,7 @@
double latitude, longitude;
lineBuffer >> name >> city >> latitude >> longitude;
- Ptr<Node> node = CreateNode (name, longitude, -latitude);
+ Ptr<Node> node = CreateNode (name, m_scale*longitude, -m_scale*latitude);
nodes.Add (node);
}