-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.proto
More file actions
36 lines (31 loc) · 741 Bytes
/
solution.proto
File metadata and controls
36 lines (31 loc) · 741 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
syntax = "proto2";
package drones;
import "problem.proto";
message DroneCommand {
enum CommandType {
LOAD = 0;
UNLOAD = 1;
DELIVER = 2;
WAIT = 3;
}
optional CommandType type = 1;
optional int32 drone = 2;
optional int32 start_time = 3;
// Used for LOAD, UNLOAD and DELIVER.
optional int32 product = 4;
// Used for LOAD, UNLOAD and DELIVER.
optional int32 num_items = 5;
// Used for LOAD and UNLOAD.
optional int32 warehouse = 6;
// Used for DELIVER only.
optional int32 order = 7;
// Used for WAIT only.
optional int32 duration = 8;
}
message DroneDesc {
repeated DroneCommand drone_command = 1;
}
message Solution {
optional Problem problem = 1;
repeated DroneDesc drone_desc = 2;
}