• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ByteOps-swe / MVP / 8207393961

08 Mar 2024 06:19PM UTC coverage: 71.198% (+6.3%) from 64.931%
8207393961

push

github

lisienskenderi
test

1058 of 1486 relevant lines covered (71.2%)

0.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/PythonSensorsSimulator/Model/SimulatorThreadPool.py
1
from typing import List
×
2
from .ComponentSimulatorThread import ComponentSimulatorThread
×
3
from .ThreadPoolAdapter.ThreadPoolTarget import ThreadPoolTarget
×
4
#utilizzo di una THREADPOOL ADAPTER
5
#Pattern adapter
6

7
class SimulatorThreadPool:
×
8

9
    def __init__(self, thread_pool_adapter: ThreadPoolTarget):
×
10
        self.__simulators: List[ComponentSimulatorThread] = []
×
11
        self.__thread_pool_adapter = thread_pool_adapter
×
12

13
    def run_all(self):
×
14
        self.__thread_pool_adapter.map(self.__start_simulator, self.__simulators)
×
15

16
    def stop_all(self):
×
17
        self.__thread_pool_adapter.map(self.__stop_simulator, self.__simulators)
×
18

19
    def append_simulator(self, simulator: ComponentSimulatorThread):
×
20
        self.__simulators.append(simulator)
×
21

22
    def __start_simulator(self, simulator: ComponentSimulatorThread):
×
23
        simulator.task()
×
24

25
    def __stop_simulator(self, simulator: ComponentSimulatorThread):
×
26
        simulator.stop()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc