title: Node creation or apperance at run time in Omnet (INET)
body: <p>I need to create a node at run time, with similar parameters as the other nodes. For that I am creating a dynamic node in ned file as:-</p>
  
  <pre><code>host_send4: meshnode {
          parameters:
              @dynamic;
              @display("p=1000,535;r=200,green;i=device/smallrouter");
  }
  </code></pre>
  
  <p>To implement this node in C++ file, I add this code:-</p>
  
  <pre><code>    cModuleType *meshnode1 = cModuleType::get("inet.networklayer.manetrouting.PASER.meshnode");
      cModule *mod = meshnode1-&gt;createScheduleInit("host_send4", this);
      cDisplayString&amp; dispstr =  mod-&gt;getDisplayString();
      dispstr.parse("p=1000,535;r=200,green;i=device/smallrouter");
  
      mod-&gt;buildInside();
      mod-&gt;scheduleStart(simTime()+5*beaconInterval);
  </code></pre>
  
  <p>But I am not able to build it properly. I think I am in need of any example on this. Can anybody help me to point out an example in INETMANET of mixim or any other oment framework, where this functionality is already implemented. 
  Thanks for your help. </p>
  
  <p>I have also though of creating a node statically, which would appear in simulation at later point of time. Is it possible and is there any example with runtime appearance and disappearance of node in INET or other OMNET framework.</p>