Passed
Pull Request — master (#348)
by
unknown
02:24
created

asyncua.common.statemachine   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 29
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A FiniteStateMachineTypeClass.__init__() 0 3 1
A ShelvedStateMachineTypeClass.__init__() 0 3 1
A StateMachineTypeClass.__init__() 0 4 1
A ExclusiveLimitStateMachineTypeClass.__init__() 0 3 1
A ProgramStateMachineTypeClass.__init__() 0 3 1
A FileTransferStateMachineTypeClass.__init__() 0 3 1
1
import asyncio
2
3
from asyncua import Server, ua, Node
4
from asyncua.common.instantiate_util import instantiate
5
6
class StateMachineTypeClass(object):
7
    def __init__(self, server=None, parent=None):
8
        self._server = server
9
        self._parent = parent
10
        raise NotImplementedError
11
12
class FiniteStateMachineTypeClass(StateMachineTypeClass):
13
    def __init__(self, server=None, parent=None):
14
        super().__init__(server, parent)  
15
        raise NotImplementedError
16
17
class ExclusiveLimitStateMachineTypeClass(FiniteStateMachineTypeClass):
18
    def __init__(self, server=None, parent=None):
19
        super().__init__(server, parent)
20
        raise NotImplementedError
21
22
class FileTransferStateMachineTypeClass(FiniteStateMachineTypeClass):
23
    def __init__(self, server=None, parent=None):
24
        super().__init__(server, parent)
25
        raise NotImplementedError
26
27
class ProgramStateMachineTypeClass(FiniteStateMachineTypeClass):
28
    def __init__(self, server=None, parent=None):
29
        super().__init__(server, parent)
30
        raise NotImplementedError
31
32
class ShelvedStateMachineTypeClass(FiniteStateMachineTypeClass):
33
    def __init__(self, server=None, parent=None):
34
        super().__init__(server, parent)
35
        raise NotImplementedError
36