-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbehavior_model.py
More file actions
40 lines (33 loc) · 947 Bytes
/
Copy pathbehavior_model.py
File metadata and controls
40 lines (33 loc) · 947 Bytes
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
MODEL_TEMPLATE = '''
class MyBehaviorModel:
relevant_inputs = [
'My Input 1',
'My Input 2'
]
relevant_outputs = [
'My Output 1',
'My Output 2',
]
def validate(self, inputs, outputs):
"""Returns whether the signals represent correct operation of the device
"""
input1 = self.relevant_input_values[0]
input2 = self.relevant_input_values[1]
output1 = self.relevant_output_values[0]
output2 = self.relevant_output_values[1]
raise NotImplementedError
ModelClass = MyBehaviorModel
'''
class BehaviorModel:
relevant_inputs = [
'Input 1',
'Input 2'
]
relevant_outputs = [
'Output 1',
'Output 2',
]
def validate(self, inputs, outputs):
"""Returns whether the signals represent correct operation of the device
"""
return True