doc/manual/source/new-models.rst
changeset 9028 26a511d6dbad
parent 7700 ab3920dbfbef
child 10033 1a4d84a85bad
equal deleted inserted replaced
9027:92f01eb7e61e 9028:26a511d6dbad
   172 to choose which subdirectory it resides in. If it is new model code of some
   172 to choose which subdirectory it resides in. If it is new model code of some
   173 sort, it makes sense to put it into the ``src/`` directory somewhere,
   173 sort, it makes sense to put it into the ``src/`` directory somewhere,
   174 particularly for ease of integrating with the build system.
   174 particularly for ease of integrating with the build system.
   175 
   175 
   176 In the case of the error model, it is very related to the packet class, so it
   176 In the case of the error model, it is very related to the packet class, so it
   177 makes sense to implement this in the ``src/network/model`` directory where |ns3|
   177 makes sense to implement this in the ``src/network/`` module where |ns3|
   178 packets are implemented.  
   178 packets are implemented.  
   179 
   179 
   180 waf and wscript
   180 waf and wscript
   181 +++++++++++++++
   181 +++++++++++++++
   182 
   182 
   391 test program 1
   391 test program 1
   392 ++++++++++++++
   392 ++++++++++++++
   393 
   393 
   394 Object Framework
   394 Object Framework
   395 ++++++++++++++++
   395 ++++++++++++++++
   396 
       
   397 ::
       
   398     static const ClassId cid;
       
   399 
       
   400     const InterfaceId ErrorModel::iid =
       
   401       MakeInterfaceId ("ErrorModel", Object::iid);
       
   402 
       
   403     const ClassId ErrorModel::cid =
       
   404       MakeClassId<ErrorModel> ("ErrorModel", ErrorModel::iid);
       
   405 
   396 
   406 Adding-a-sample-script
   397 Adding-a-sample-script
   407 **********************
   398 **********************
   408 
   399 
   409 At this point, one may want to try to take the basic scaffolding defined above
   400 At this point, one may want to try to take the basic scaffolding defined above