-
Notifications
You must be signed in to change notification settings - Fork 5
/
Optimization.dtd
92 lines (92 loc) · 2.71 KB
/
Optimization.dtd
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Optimization.dtd",
"title": "Optimization",
"description": "JSON schema for Optimization object",
"type": "object",
"properties": {
"optimization_problem_id": {
"type": "string",
"title": "Optimization Problem ID",
"descrption": "Optimization which generated this route"
},
"smart_optimization_id": {
"type": "string",
"title": "Smart Optimization ID",
"description": "Smart Optimization ID"
},
"user_errors": {
"type": "array",
"title": "User Errors",
"items": {
"type": "string"
},
"descrption": "User Errors"
},
"optimization_errors": {
"type": "array",
"title": "Optimization Errors",
"items": { "type": "string" },
"descrption": "Optimization Errors"
},
"state": {
"type": "integer",
"enum": [0,1,2,3,4,5,6,7,8],
"title": "State",
"description": "An optimization problem can be at one state at any given time (New = 0, Initial = 1, MatrixProcessing = 2, Optimizing = 3, Optimized = 4, Error = 5, ComputingDirections = 6, InQueue = 7, NoSolution=8)"
},
"created_timestamp": {
"type": "integer",
"title": "Created Timestamp",
"descrption": "When the optimization problem was created"
},
"scheduled_for": {
"type": "integer",
"title": "Scheduled For",
"descrption": "An Unix Timestamp the Optimization Problem was scheduled for."
},
"optimization_completed_timestamp": {
"type": "integer",
"title": "Optimization Completed Timestamp",
"descrption": "When the Optimization Problem was completed."
},
"parameters": {
"type": "array",
"title": "Route Parameters",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/RouteParameters.dtd"
},
"descrption": "Route Parameters"
},
"sent_to_background": {
"type": "boolean",
"name": "sent_to_background",
"title": "Sent to Background",
"descrption": "If true it means the solution was not returned (it is being computed in the background)"
},
"addresses": {
"type": "array",
"title": "Route Addresses",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/Address.dtd"
},
"descrption": "Route Addresses"
},
"routes": {
"type": "array",
"title": "Routes",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/DataObjectRoute.dtd"
},
"descrption": "Routes"
},
"links": {
"type": "array",
"title": "Links",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/Links.dtd"
},
"descrption": "Links to the GET operations for the optimization problem"
}
}
}