[ndnSIM] Making a Customized Node
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>
>> 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.
>> 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>
>>> 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...
More information about the ndnSIM