<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 12, 2019 at 19:04 f179007 Ammarah Khalid <<a href="mailto:f179007@nu.edu.pk">f179007@nu.edu.pk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">Hi Junxiao,<div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Thanks & Regards.</div></div></div><div dir="auto"><div dir="auto"><div dir="auto">Ammarah Khalid</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 12, 2019, 5:36 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" rel="noreferrer" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi Ammarah</div></div><div dir="auto"><br></div><div dir="auto">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. <div><a href="https://www.nsnam.org/docs/manual/html/index.html" rel="noreferrer noreferrer" target="_blank">https://www.nsnam.org/docs/manual/html/index.html</a></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 12, 2019 at 05:41 f179007 Ammarah Khalid <<a href="mailto:f179007@nu.edu.pk" rel="noreferrer noreferrer" target="_blank">f179007@nu.edu.pk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div><div><div><div>Hi Everyone!<br></div>I'm trying to make a customized node at which I need a table of 5 columns and n rows (n=1,2,3,...).<br></div>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?<br><br></div>Thanks and Regards.<br></div>Ammarah Khalid<br></div><br>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>