forked from Ecdar/Ecdar-ProtoBuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.proto
106 lines (88 loc) · 2.17 KB
/
query.proto
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
syntax = "proto3";
package EcdarProtoBuf;
option java_multiple_files = false;
option java_package = "EcdarProtoBuf";
option java_outer_classname = "QueryProtos";
import "component.proto";
import "objects.proto";
message IgnoredInputOutputs {
repeated string ignored_inputs = 1;
repeated string ignored_outputs = 2;
}
message UserTokenResponse {
int32 user_id = 1;
}
message QueryRequest {
int32 user_id = 1;
int32 query_id = 2;
string query = 3;
ComponentsInfo components_info = 4;
IgnoredInputOutputs ignored_input_outputs = 5;
message Settings {
bool disable_clock_reduction = 1;
}
Settings settings = 6;
}
message QueryResponse {
int32 query_id = 1;
message RefinementResult {
bool success = 1;
repeated State relation = 2;
string reason = 3;
State state = 4;
repeated string action = 5;
}
message ComponentResult { Component component = 1; }
message ConsistencyResult {
bool success = 1;
string reason = 2;
State state = 3;
repeated string action = 4;
}
message DeterminismResult {
bool success = 1;
string reason = 2;
State state = 3;
repeated string action = 4;
}
message ImplementationResult {
bool success = 1;
string reason = 2;
State state = 3;
}
message ReachabilityResult {
bool success = 1;
string reason = 2;
State state = 3;
repeated Path component_paths = 4;
}
oneof result {
RefinementResult refinement = 3;
ComponentResult component = 4;
ConsistencyResult consistency = 5;
DeterminismResult determinism = 6;
string error = 7;
ImplementationResult implementation = 8;
ReachabilityResult reachability = 9;
}
message Information {
string subject = 1;
string message = 2;
}
repeated Information info = 10;
}
message SimulationStartRequest {
SimulationInfo simulation_info = 1;
}
message SimulationStepRequest {
SimulationInfo simulation_info = 1;
Decision chosen_decision = 2;
}
message SimulationStepResponse {
repeated DecisionPoint new_decision_points = 1;
}
message SimulationInfo {
int32 user_id = 1;
string component_composition = 2; // example: A || B || A
ComponentsInfo components_info = 3;
}