SHARE
TWEET

Untitled

a guest Jun 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // This program is free software: you can redistribute it and/or modify
  3. // it under the terms of the GNU Lesser General Public License as published by
  4. // the Free Software Foundation, either version 3 of the License, or
  5. // (at your option) any later version.
  6. //
  7. // This program is distributed in the hope that it will be useful,
  8. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10. // GNU Lesser General Public License for more details.
  11. //
  12. // You should have received a copy of the GNU Lesser General Public License
  13. // along with this program.  If not, see http://www.gnu.org/licenses/.
  14. //
  15.  
  16. import org.omnetpp.queueing.Allocate;
  17. import org.omnetpp.queueing.Deallocate;
  18. import org.omnetpp.queueing.Delay;
  19. import org.omnetpp.queueing.ResourcePool;
  20. import org.omnetpp.queueing.Sink;
  21. import org.omnetpp.queueing.Source;
  22.  
  23.  
  24. //
  25. // TODO auto-generated type
  26. //
  27. network Network
  28. {
  29.     @display("bgb=883,489");
  30.     submodules:
  31.         source: Source {
  32.             @display("p=30,196");
  33.             interArrivalTime = exponential(10s);
  34.         }
  35.         coders: ResourcePool {
  36.             @display("p=140,329");
  37.         }
  38.         coder_task: Allocate {
  39.             @display("p=124,200");
  40.             resourceModuleName = "coders";
  41.         }
  42.         coding: Delay {
  43.             @display("p=217,206");
  44.             delay = uniform(10s, 70s);
  45.         }
  46.         release_coder: Deallocate {
  47.             @display("p=305,213");
  48.             resourceModuleName = "coders";
  49.         }
  50.         tester_task: Allocate {
  51.             @display("p=419,212");
  52.             resourceModuleName = "testers";
  53.         }
  54.         testers: ResourcePool {
  55.             @display("p=487,80");
  56.         }
  57.         testing: Delay {
  58.             @display("p=516,220");
  59.             delay = uniform(20s, 40s);
  60.         }
  61.         release_tester: Deallocate {
  62.             @display("p=609,227");
  63.             resourceModuleName = "testers";
  64.         }
  65.         sinkstat: Sinkstat {
  66.             @display("p=705,228");
  67.         }
  68.     connections:
  69.         source.out --> coder_task.in++;
  70.         coder_task.out --> coding.in++;
  71.         coding.out --> release_coder.in++;
  72.         release_coder.out --> tester_task.in++;
  73.         tester_task.out --> testing.in++;
  74.         testing.out --> release_tester.in++;
  75.         release_tester.out --> sinkstat.in++;
  76. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top