forked from rabjohnston/E81ProjectPredictiveDialer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulation_constant_call.py
More file actions
executable file
·159 lines (139 loc) · 6.5 KB
/
simulation_constant_call.py
File metadata and controls
executable file
·159 lines (139 loc) · 6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
from simulation import Simulation
import logging as log
class SimulationConstantCall(Simulation):
def __init__(self, dial_level = 1, stop_immediately_when_no_calls = False, number_agents=40, generate_history_file=True):
Simulation.__init__(self, stop_immediately_when_no_calls, number_agents=number_agents, generate_history_file=generate_history_file)
if dial_level < 0:
dial_level = 0
self._dial_level = dial_level
# self._interval = Simulation.ONE_SECOND
#
# self._remaining_calls_to_make = 0
def recalc_dial_level(self):
"""
Make a constant number of calls per defined interval
"""
# if self._current_time % self._interval == 0:
# calls_to_make, self._remaining_calls_to_make = divmod(self._dial_level + self._remaining_calls_to_make, 1)
# return calls_to_make
# else:
# return 0
return self._dial_level
# 1 call/s
# INFO Report:
# INFO current_time: 02:02:22.400
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 7199
# INFO number_free_agents: 40
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 3392
# INFO total_number_not_answered_calls: 3807
# INFO total_number_abandon_calls: 10
# INFO total_number_talking_calls: 3382
# INFO total_number_calls: 7199
# INFO total_agent_idle_time: 94758200
# INFO total_agent_talk_time: 198937800
# 2 call/s
# INFO Report:
# INFO current_time: 02:03:39.400
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 14398
# INFO number_free_agents: 40
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 6966
# INFO total_number_not_answered_calls: 7432
# INFO total_number_abandon_calls: 474
# INFO total_number_talking_calls: 6492
# INFO total_number_calls: 14398
# INFO total_agent_idle_time: 12998900
# INFO total_agent_talk_time: 283777100
# 3 calls/s
# INFO Report:
# INFO current_time: 02:05:09.200
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 21597
# INFO number_free_agents: 40
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 10615
# INFO total_number_not_answered_calls: 10982
# INFO total_number_abandon_calls: 2752
# INFO total_number_talking_calls: 7863
# INFO total_number_calls: 21597
# INFO total_agent_idle_time: 13772100
# INFO total_agent_talk_time: 286595900
# 50 calls/s
# INFO Report:
# INFO current_time: 02:08:23.600
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 359950
# INFO number_free_agents: 40
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 121619
# INFO total_number_not_answered_calls: 238331
# INFO total_number_abandon_calls: 113170
# INFO total_number_talking_calls: 8449
# INFO total_number_calls: 359950
# INFO total_agent_idle_time: 16188200
# INFO total_agent_talk_time: 291955800
# 50 calls/s (fix: also remove created calls at end)
# INFO Report:
# INFO current_time: 02:03:26.900
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 359950
# INFO number_free_agents: 40
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 121539
# INFO total_number_not_answered_calls: 238411
# INFO total_number_abandon_calls: 113151
# INFO total_number_talking_calls: 8388
# INFO total_number_calls: 359950
# INFO total_agent_idle_time: 7805400
# INFO total_agent_talk_time: 288470600
# 50 calls/s (fix: also logoff agents add end)
# INFO Report:
# INFO current_time: 02:03:26.900
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 359950
# INFO number_free_agents: 0
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 121539
# INFO total_number_not_answered_calls: 238411
# INFO total_number_abandon_calls: 113131
# INFO total_number_talking_calls: 8408
# INFO total_number_calls: 359950
# INFO total_agent_idle_time: 1050300
# INFO total_agent_talk_time: 289400100
# INFO Report:
# INFO current_time: 02:03:25.800
# INFO number_created_calls: 0
# INFO number_ringing_calls: 0
# INFO number_queued_calls: 0
# INFO number_talking_calls: 0
# INFO number_disconnected_calls: 359995
# INFO number_free_agents: 0
# INFO number_busy_agents: 0
# INFO total_number_answered_calls: 121546
# INFO total_number_not_answered_calls: 238449
# INFO total_number_abandon_calls: 113138
# INFO total_number_talking_calls: 8408
# INFO total_number_calls: 359995
# INFO total_agent_idle_time: 1030900
# INFO total_agent_talk_time: 289405700