ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
Master_Clock.pyi
1from typing import NoReturn, Any
2
3
5 """
6 Base-Class for synchronisation parts. A subclass need to be implemented for each part (e.g. iCub interaction; ANNarchy simulation)
7 """
8 def __init__(self, *args, **kwargs) -> None: ...
9
10 def sync_input(self) -> NoReturn:
11 """
12 Need to be implemented. Should contain necessary input retrieval.
13
14 Raises
15 ------
16 NotImplementedError
17 Raises NotImplementedError as default. Need to be overwritten in the actual implementation.
18 """
19 ...
20
21 def update(self, T: int) -> NoReturn:
22 """
23 Need to be implemented. Should contain necessary update steps -> e.g. ANNarchy simulation.
24
25 Parameters
26 ----------
27 T : int
28 number of timesteps for the update -> e.g. simulation time for ANNarchy
29
30 Raises
31 ------
32 NotImplementedError
33 Raises NotImplementedError as default. Need to be overwritten in the actual implementation.
34 """
35 ...
36
37
39 """
40 Main Class for synchronisation, needs to be instantiated only once.
41 """
42 def __init__(self) -> None: ...
43
44 def add(self, instance: ClockInterface) -> Any:
45 """
46 Add instance of class inherited from "ClockInterface" for synchronisation.
47
48 Parameters
49 ----------
50 instance : sublass of ClockInterface
51 Class instance which is derived from ClockInterface (need to be implemented serperately).
52
53 Raises
54 ------
55 TypeError
56 Raises TypeError, if instances is not a sublass of ClockInterface.
57 """
58 ...
59
60 def update(self, T: int) -> NoReturn:
61 """
62 Perform an update for each registered instance in parallel. Contains an input retrieval step and the actual update.
63
64 Parameters
65 ----------
66 T : int
67 number of timesteps for the update -> e.g. simulation time for ANNarchy
68 """
69 ...
Any add(self, ClockInterface instance)