~thomas-philipp/openwns-systemtest-library/queueing-experimental

« back to all changes in this revision

Viewing changes to queuing/GatedService.py

  • Committer: Thomas Philipp
  • Date: 2009-02-03 22:15:11 UTC
  • Revision ID: thomas.philipp@gmx.com-20090203221511-sgnh2qr6pdam506n
Update to current GSModel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    ro = 0.8
11
11
    server = "D"
12
12
    arrival = "M"
13
 
    multiServerMode = "async"
14
 
    vacMode = "SV"  # MV for multiple or SV for single vacation mode
 
13
    multiServerMode = "asynchronous" # synchronous or asynchronous
 
14
    vacMode = "MV"  # MV for multiple or SV for single vacation mode
15
15
    tLimit = 0.05
16
16
    serverCount = 12
17
17
params = Params()
31
31
vacationDurationDist = openwns.distribution.NegExp(meanVacationDuration)
32
32
 
33
33
 
34
 
gated_service_ggn = openwns.queuingsystem.GatedServiceMG1(params.multiServerMode,
35
 
                                                          params.vacMode,
36
 
                                                          params.serverCount,
37
 
                                                          jobInterArrivalTimeDist,
38
 
                                                          jobProcessingTimeDist,
39
 
                                                          vacationDurationDist,
40
 
                                                          params.tLimit)
 
34
gated_service_ggn = openwns.queuingsystem.GSModel(params.multiServerMode,
 
35
                                                  params.vacMode,
 
36
                                                  params.serverCount,
 
37
                                                  jobInterArrivalTimeDist,
 
38
                                                  jobProcessingTimeDist,
 
39
                                                  vacationDurationDist,
 
40
                                                  params.tLimit)
41
41
 
42
42
sim = openwns.Simulator(simulationModel = gated_service_ggn,
43
43
                        maxSimTime      = 2000.0)