[ndnSIM] Making a Customized Node

Junxiao Shi shijunxiao at email.arizona.edu
Sat Oct 12 16:05:51 PDT 2019

On Sat, Oct 12, 2019 at 19:04 f179007 Ammarah Khalid <f179007 at nu.edu.pk>

> Hi Junxiao,
> I want different data types for each column of the table. Please mention
> how this table will be made using the approach you have mentioned.
> Thanks & Regards.
> Ammarah Khalid
> On Sat, Oct 12, 2019, 5:36 PM Junxiao Shi <shijunxiao at email.arizona.edu>
> wrote:
>> Hi Ammarah
>> You don’t need to modify Node class. Instead, aggregate the table onto
>> the node. Read ns-3 Manual - Object Model section to understand what
>> “aggregate” means.
>> https://www.nsnam.org/docs/manual/html/index.html
>> The table itself is std::vector<std::array<int, 5>> (assuming it’s a
>> table of integers). You’ll need to wrap it into a subclass of ns3::Object.
>> Yours, Junxiao
>> On Sat, Oct 12, 2019 at 05:41 f179007 Ammarah Khalid <f179007 at nu.edu.pk>
>> wrote:
>>> Hi Everyone!
>>> I'm trying to make a customized node at which I need a table of 5
>>> columns and n rows (n=1,2,3,...).
>>> Should I make it by extending Node.h file because this node will be
>>> different from other node in the network? What are the changes I have to do
>>> in Node.cpp file because I want previous all functions of standard node in
>>> the customized node also. Moreover, please suggest which data structure
>>> should I use at the customized node to store a table in which each row must
>>> have 5 columns in the table?
>>> Thanks and Regards.
>>> Ammarah Khalid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20191012/7b4c27bc/attachment.html>

More information about the ndnSIM mailing list