Hi,
I want to implement a Sensor Network using NS-3. Previously, I used to use C++ for my simulations; however, based on recommendations, I plan to move to NS-3.
My question: I know how to create nodes using NodeContainer. However, could you please let me know how I can assign my own defined attributes to a node? For example, in C++, I used a struct for sensor nodes to contain different attributes of nodes, including S[i].E_res as the remaining energy, S[i].L as a node level, etc. I just wanted to know, how I should define such attributes in NS-3 when we don't have an explicit sensor struct defined in my C++ codes.
Cheers
Jack