Re: [ns] 1. What's the shadow object name of a node in C++ domain?

2013-07-28 Thread marllus lustosa

Hello,

Look this: The architecture of node: http://bit.ly/11p827i

*6.1.3 Default Nodes and Node Configuration Interface*

*6.2.1.1 C++* *Variables*

Declaration of class Classifier

// ̃/ns/classifier/classifier.h

1 class Classifier : public NsObject {
2 public:
3 Classifier();
4 virtual  ̃Classifier();
5 virtual void recv(Packet* p, Handler* h);
6 virtual NsObject* find(Packet*);
7 virtual int classify(Packet *);
8 virtual void clear(int slot);
9 virtual void install(int slot, NsObject*);
10 inline int mshift(int val) {return((val >> shift_) & mask_);}
11 protected:
12 virtual int command(int argc, const char*const* argv);
13 NsObject** slot_;
14 NsObject *default_target_;
15 int shift_;
16 int mask_;
17 };


More information in the book "Introduction to Network Simulator NS2" -
2Edition - http://amzn.to/11p7Uoj


Hugs!


2013/7/25 

> Send Ns-users mailing list submissions to
> ns-users@isi.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.isi.edu/mailman/listinfo/ns-users
> or, via email, send a message with subject or body 'help' to
> ns-users-requ...@isi.edu
>
> You can reach the person managing the list at
> ns-users-ow...@isi.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ns-users digest..."
>
>
> Today's Topics:
>
>1. What's the shadow object name of a node in C++ domain?
>   (Mohsen Sasaninasab)
>
>
> --
>
> Message: 1
> Date: Thu, 25 Jul 2013 21:11:04 +0330
> From: Mohsen Sasaninasab 
> Subject: [ns] What's the shadow object name of a node in C++ domain?
> To: ns-users , ddu...@isi.edu, c...@unity.ncsu.edu
> Message-ID:
>  a...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
> I have created a node in OTcl domain. How can I access the node in C++
> domain?
> Thanks!
> Mohsen.
>
>
>
> --
>
> ___
> Ns-users mailing list
> Ns-users@isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 115, Issue 21
> *
>



-- 
att,

Marllus de Melo Lustosa -  Bacharelando em Ciência da Computação - UFPI
Lattes -> http://lattes.cnpq.br/5163268610076256
HomePage -> http://www.marllus.com


Re: [ns] problem regarding mannasim patch for ns-2.35

2013-07-28 Thread marllus lustosa

Hello! The Liowsn project was launched. A Linux operating system Ubuntu
9.10 with all the tools for simulation of wireless sensor networks already
installed. Contains several modules and tools for simulating networks
already configured and ready to use!

Features

Current Version: 0.1
*Mannasim (Module for simulation of WSN for the NS-2.34) *
Omnet + + (Framework for network simulation)
Castalia (Simulator for WSN works with, that wheel under Omnet + +)
Xgraph (Trace file reader)
Tracegraph (Trace file reader)
NAM (Network Animator)
NS-2.34 (Network Simulator)

Website of the project:
http://sourceforge.net/projects/liowsn/

Paper posted on the liowsn project:
https://www.ijcaonline.org/archives/volume52/number12/8256-1786


2013/7/29 marllus lustosa 

> Hello! The Liowsn project was launched. A Linux operating system Ubuntu
> 9.10 with all the tools for simulation of wireless sensor networks already
> installed. Contains several modules and tools for simulating networks
> already configured and ready to use!
>
> Features
>
> Current Version: 0.1
> *Mannasim (Module for simulation of WSN for the NS-2.34) *
> Omnet + + (Framework for network simulation)
> Castalia (Simulator for WSN works with, that wheel under Omnet + +)
> Xgraph (Trace file reader)
> Tracegraph (Trace file reader)
> NAM (Network Animator)
> NS-2.34 (Network Simulator)
>
> Website of the project: 
> http://sourceforge.net/projects/liowsn/
>
> Paper posted on the liowsn project:
> https://www.ijcaonline.org/archives/volume52/number12/8256-1786
>
>
>
>
>> Message: 3
>> Date: Sun, 14 Jul 2013 01:59:44 -0700 (PDT)
>> From: knudfl 
>> Subject: Re: [ns] problem regarding mannasim patch for ns-2.35
>> To: ns-users@isi.edu
>> Message-ID: <1373792384068-27303.p...@n7.nabble.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>> > @prince
>> > problem regarding mannasim patch for ns-2.35
>> >
>> > I have ubuntu 12.10(32-bit)
>> > I have 64 bit OS
>>
>> ? Which one is it ? $ uname -m 
>>
>> Mannasim patch for ns-2.35 : Unless you do something really really wrong,
>> it
>> can't fail.
>> Ubuntu 12.10 - 64bits : x86_64 :
>> $ tar xvf ns-allinone-2.35.tar.gz && patch -p0 < ns2.35-mannasim.patch
>> $ cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install : No
>> errors.
>>
>> Or use the already patched " https://github.com/paultsr/ns-allinone-2.35"; :
>> No errors on the 64bits Ubuntu 12.10 .
>>
>> About 'make clean' in ns-2.35 : You will also have to delete files.o in
>> the
>> folder mannasim/:
>> $ rm commonnodeAPP.o , etc. etc.
>>
>> Configuring (Not required when you start from scratch with an untouched
>> ns-allinone-2.35):
>> $ make distclean && export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make
>>
>> -
>>
>>
>>
>> http://docencia-eupt.unizar.es/paco/
>> http://init.unizar.es/
>> http://www.grc.upv.es/
>>
>>
>> --
>>
>> ___
>> Ns-users mailing list
>> Ns-users@isi.edu
>> http://mailman.isi.edu/mailman/listinfo/ns-users
>>
>>
>> End of Ns-users Digest, Vol 115, Issue 11
>> *
>>
>
>
>
> --
> att,
>
> Marllus de Melo Lustosa -  Bacharelando em Ciência da Computação - UFPI
> Lattes -> http://lattes.cnpq.br/5163268610076256
> HomePage -> http://www.marllus.com
>



-- 
att,

Marllus de Melo Lustosa -  Bacharelando em Ciência da Computação - UFPI
Lattes -> http://lattes.cnpq.br/5163268610076256
HomePage -> http://www.marllus.com