ports have type

master
Martin Polanka 7 years ago
parent e9123841e7
commit 086f84f0b2

@ -210,6 +210,9 @@ Mandatory items are bold, optional italic, description of items follows:
* **${implicit list of boxes}** - ... * **${implicit list of boxes}** - ...
* **name** - ... * **name** - ...
* **portsIn** - ... * **portsIn** - ...
* ${name of the port}
* **type** - ...
* **value** - ...
* **portsOut** - ... * **portsOut** - ...
* **type** - ... * **type** - ...
@ -220,37 +223,37 @@ Example:
{ {
"name":"source", "name":"source",
"portsIn":[], "portsIn":[],
"portsOut":[{ "source_file":"source_file" }], "portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }],
"type":"data" "type":"data"
}, },
{ {
"name":"test", "name":"test",
"portsIn":[], "portsIn":[],
"portsOut":[{ "portsOut":[{
"test_file":"test_file", "test_file":[{"type":"file", "value":"test_file"}],
"expected_output":"expected_output" "expected_output":[{"type":"file", "value":"expected_output"}]
}], }],
"type":"data" "type":"data"
}, },
{ {
"name":"compilation", "name":"compilation",
"portsIn":[{ "input_file":"source_file" }], "portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }],
"portsOut":[{ "output_file":"binary_file" }], "portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }],
"type":"compilation" "type":"compilation"
}, },
{ {
"name":"run", "name":"run",
"portsIn":[{ "binary_file":"binary_file" }], "portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }],
"portsOut":[{ "output_file":"actual_output" }], "portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }],
"type":"execution" "type":"execution"
}, },
{ {
"name":"judge", "name":"judge",
"portsIn":[{ "portsIn":[{
"actual_output":"actual_output", "actual_output":[{"type":"file", "value":"actual_output"}],
"expected_output":"expected_output" "expected_output":[{"type":"file", "value":"expected_output"}]
}], }],
"portsOut":[{ "score":"score" }], "portsOut":[{ "score":[{"type":"file", "value":"score"}] }],
"type":"evaluation" "type":"evaluation"
} }
] ]

Loading…
Cancel
Save