[Ns-developers] [ns3] a small gui for attribute configuration

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Tue May 13 17:25:12 PDT 2008


hi,

Because I needed a small GUI for a demo I am preparing, I put together
the following GTK+-based config-store (it should work with pretty much
any decent version of GTK+ >= 2.0 which means pretty much any linux
distribution less than 4 years old):
http://code.nsnam.org/mathieu/ns-3-gtk/

see the code in src/contrib/gtk-config-store.h

Usage:

int main (int, char *[])
{
  // setup topology, traffic, etc.

  GtkConfigStore config;
  // popup configuration dialog.
  config.Configure ();

  Simulator::Now ();

  return 0;
}

the configuration dialog allows you to interactively edit all properties
of all objects and then to save them in an ascii text file which is also
readable by the src/contrib/config-store.h class. 

The code is very rough and lacks quite a bit of polish: it could eat
living babies or make your CPU melt but, I thought that it might be of
some use to more people than me but you have been warned !

regards,
Mathieu



More information about the Ns-developers mailing list