[Ns-developers] Internal Time Keeping Question

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Tue Jul 22 12:08:20 PDT 2008


On Tue, 2008-07-22 at 20:59 +0200, Hagen Paul Pfeifer wrote:

> >i.e., let's say I have 2 federates, A and B and two nodes, C and D.
> >Let's say that C is assigned to A and D assigned to B. Let's say that A
> >has a traffic generating application. What does the user script look
> >like to do this ? If it looks like a normal script, how do you plan to
> >selectively enable the traffic generation on only federate C ?
> 
> Exactly how it is implemented in a Channel to differ if a Packet should be
> processed local or on another node:
> 
> if (NodeFederate::Instance ()->isLocalNode(node->GetId())) { }

Are you saying that you plan to modify OnOffApplication with that check
before generating traffic ? (Or maybe you intend to do this in
Application::Start ?)

Mathieu



More information about the Ns-developers mailing list