[ndnSIM] consumer attribute

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Mar 27 13:18:56 PDT 2014

Hi Andriana,

Not very sure what tables you want to pass, but can you make just an object (derived from ns3::Object) that contains the whole table you want to pass (or being a container for all parameters you want to pass)?  This way you don't need to jingle with NS-3 and you can simply pass your object as an attribute.


On Mar 26, 2014, at 12:51 PM, ioannoa at scss.tcd.ie wrote:

> Hello everyone,
> I am trying to find a way to link my tables in my simulation file with
> each consumer (the consumer class). I want each consumer to have access
> (just reading) on two of the tables that i define in the .cc file in the
> scenarios directory. I have read about attributes and found only two
> related:
> ObjectVector
> Vector
> As fas as i understand though none of these would do cause:
> ObjectVector still supports ns3 objects that inherit the Object class and
> Vector is standard defined up to 3 dimensions.
> My tables in the .cc simulation file may be different in each run
> depending on the parameters that i am giving. Plus, they are of type
> std::vector<float>.
> The question is: How could i pass these tables as attributes (or any other
> way) into the consumer class?
> Anyone that had something similar? Google search honestly gives me nothing.
> Kind regards,
> Andriana.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

More information about the ndnSIM mailing list