src/helper/on-off-helper.cc
changeset 4140 6bbf05bf4826
parent 3848 affd0834debc
child 4147 5d8530130930
--- a/src/helper/on-off-helper.cc	Tue Jan 20 15:47:14 2009 -0800
+++ b/src/helper/on-off-helper.cc	Tue Jan 20 17:39:18 2009 -0800
@@ -21,6 +21,7 @@
 #include "ns3/inet-socket-address.h"
 #include "ns3/packet-socket-address.h"
 #include "ns3/string.h"
+#include "ns3/object-names.h"
 
 namespace ns3 {
 
@@ -44,6 +45,13 @@
 }
 
 ApplicationContainer
+OnOffHelper::Install (std::string nodeName) const
+{
+  Ptr<Node> node = Names::Find<Node> (nodeName);
+  return ApplicationContainer (InstallPriv (node));
+}
+
+ApplicationContainer
 OnOffHelper::Install (NodeContainer c) const
 {
   ApplicationContainer apps;