Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. //
  2. // This file is part of an OMNeT++/OMNEST simulation example.
  3. //
  4. // Copyright (C) 2003 Ahmet Sekercioglu
  5. // Copyright (C) 2003-2015 Andras Varga
  6. //
  7. // This file is distributed WITHOUT ANY WARRANTY. See the file
  8. // `license' for details on this and other legal matters.
  9. //
  10.  
  11.  
  12. simple Txc1
  13. {
  14.     parameters:
  15.         volatile double delayTime @unit(s);
  16.        
  17.     gates:
  18.         input in;
  19.         output out;
  20. }
  21.  
  22. //
  23. // Two instances (tic and toc) of Txc1 connected both ways.
  24. // Tic and toc will pass messages to one another.
  25. //
  26. network Tictoc1
  27. {
  28.     submodules:
  29.         tic: Txc1;
  30.         toc: Txc1;
  31.     connections:
  32.         tic.out --> {  delay = 100ms; } --> toc.in;
  33.         tic.in <-- {  delay = 200ms; } <-- toc.out;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement