Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1483)

Unified Diff: src/devices/point-to-point/point-to-point-channel.cc

Issue 109068: Ns-3 MPI Distributed Simulation (Closed)
Patch Set: Fix valgrind and merged Created 14 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/devices/point-to-point/point-to-point-channel.cc
===================================================================
--- a/src/devices/point-to-point/point-to-point-channel.cc
+++ b/src/devices/point-to-point/point-to-point-channel.cc
@@ -124,4 +124,30 @@
return GetPointToPointDevice (i);
}
+Time
+PointToPointChannel::GetDelay (void) const
+{
+ return m_delay;
+}
+
+Ptr<PointToPointNetDevice>
+PointToPointChannel::GetSource (uint32_t i) const
+{
+ return m_link[i].m_src;
+}
+
+Ptr<PointToPointNetDevice>
+PointToPointChannel::GetDestination (uint32_t i) const
+{
+ return m_link[i].m_dst;
+}
+
+bool
+PointToPointChannel::IsInitialized (void) const
+{
+ NS_ASSERT (m_link[0].m_state != INITIALIZING);
+ NS_ASSERT (m_link[1].m_state != INITIALIZING);
+ return true;
+}
+
} // namespace ns3
« no previous file with comments | « src/devices/point-to-point/point-to-point-channel.h ('k') | src/devices/point-to-point/point-to-point-remote-channel.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b