Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // This program is free software: you can redistribute it and/or modify
- // it under the terms of the GNU Lesser General Public License as published by
- // the Free Software Foundation, either version 3 of the License, or
- // (at your option) any later version.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU Lesser General Public License for more details.
- //
- // You should have received a copy of the GNU Lesser General Public License
- // along with this program. If not, see http://www.gnu.org/licenses/.
- //
- import org.omnetpp.queueing.Allocate;
- import org.omnetpp.queueing.Deallocate;
- import org.omnetpp.queueing.Delay;
- import org.omnetpp.queueing.ResourcePool;
- import org.omnetpp.queueing.Sink;
- import org.omnetpp.queueing.Source;
- //
- // TODO auto-generated type
- //
- network Network
- {
- @display("bgb=883,489");
- submodules:
- source: Source {
- @display("p=30,196");
- interArrivalTime = exponential(10s);
- }
- coders: ResourcePool {
- @display("p=140,329");
- }
- coder_task: Allocate {
- @display("p=124,200");
- resourceModuleName = "coders";
- }
- coding: Delay {
- @display("p=217,206");
- delay = uniform(10s, 70s);
- }
- release_coder: Deallocate {
- @display("p=305,213");
- resourceModuleName = "coders";
- }
- tester_task: Allocate {
- @display("p=419,212");
- resourceModuleName = "testers";
- }
- testers: ResourcePool {
- @display("p=487,80");
- }
- testing: Delay {
- @display("p=516,220");
- delay = uniform(20s, 40s);
- }
- release_tester: Deallocate {
- @display("p=609,227");
- resourceModuleName = "testers";
- }
- sinkstat: Sinkstat {
- @display("p=705,228");
- }
- connections:
- source.out --> coder_task.in++;
- coder_task.out --> coding.in++;
- coding.out --> release_coder.in++;
- release_coder.out --> tester_task.in++;
- tester_task.out --> testing.in++;
- testing.out --> release_tester.in++;
- release_tester.out --> sinkstat.in++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement