-
Notifications
You must be signed in to change notification settings - Fork 1
/
message.proto
73 lines (62 loc) · 1.58 KB
/
message.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
package bio.motions.format.proto;
message Point {
optional sint32 x = 1;
optional sint32 y = 2;
optional sint32 z = 3;
}
message Callback {
optional string name = 1;
enum Type {
INT = 1;
DOUBLE = 2;
INT_LIST = 3;
DOUBLE_LIST = 4;
}
optional Type callback_type = 2;
optional int32 int_value = 3;
optional double double_value = 4;
repeated int32 int_list_value = 5 [packed=true];
repeated double double_list_value = 6 [packed=true];
}
message Header {
optional string simulation_name = 1;
optional string simulation_description = 2;
optional int32 binders_types_count = 3;
//^number of possible binder types
repeated string binder_types_names = 6;
//^names of binders (in order of their numbers)
message ChainDescription {
optional string chain_name = 1;
message BeadDescription {
message Binding {
optional int32 binder_type = 1;
optional int32 force = 2;
}
repeated Binding energy_vector = 1;
}
repeated BeadDescription beads = 2;
}
repeated ChainDescription chains = 5;
//NEXT_ID=7
}
message Delta {
optional Point from = 1;
//^previous position of moved atom
optional Point disp = 2;
//^displacement vector
repeated Callback callbacks = 3;
optional int64 step_counter = 4;
}
message Keyframe {
message Binder {
optional int32 binder_type = 1;
optional Point position = 2;
}
repeated Binder binders = 3;
message Chain {
repeated Point bead_positions = 1;
}
repeated Chain chains = 4;
repeated Callback callbacks = 5;
optional int64 step_counter = 6;
}