-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecutorBuilder.py
40 lines (37 loc) · 1.14 KB
/
executorBuilder.py
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
from executor import Executor
class ExecutorBuilder:
def __init__(self,
sim,
simulator,
spinnVersion,
fsa,
neal,
neuronRepository,
connectionsRepository,
activationsRepository,
logger):
self.__simulator = simulator
self.__fsa = fsa
self.__neal = neal
self.__sim = sim
self.__spinnVersion = spinnVersion
self.__neuronRepository = neuronRepository
self.__connectionsRepository = connectionsRepository
self.__activationsRepository = activationsRepository
self.__logger = logger
self.__associationTopology = None
def useAssociationTopology(self, topology):
if(topology):
self.__associationTopology = topology
return self
def build(self):
return Executor(self.__sim,
self.__simulator,
self.__fsa,
self.__neal,
self.__spinnVersion,
self.__neuronRepository,
self.__connectionsRepository,
self.__activationsRepository,
self.__associationTopology,
self.__logger)