-
Notifications
You must be signed in to change notification settings - Fork 1
/
domain.py
42 lines (35 loc) · 1.08 KB
/
domain.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
41
from typing import List
class Tactic:
def __init__(self, id : str, name : str):
self.id : str = id
self.name : str = name
self.techniques : List['Technique'] = []
self.sequence : int
class Technique:
def __init__(self, id : str, name : str):
self.id : str = id
self.name : str = name
self.tactics : List['Tactic'] = []
self.years : List[int] = []
class Procedure:
def __init__(self, id):
self.id : str = id
self.name : str = ''
self.type : str = ''
self.year : int = 0
self.technique : Technique
self.reference : str = ''
class Group:
def __init__(self, id):
self.id : str = id
self.techniques : List['Technique'] = []
self.procedures : List['Procedure'] = []
class Software:
def __init__(self, id):
self.id : str = id
self.techniques : List['Technique'] = []
self.procedures : List['Procedure'] = []
class Tuples:
def __init__(self, entity, technique) -> None:
self.entity = entity
self.techniques = []