From 086f84f0b23d2951fc81e9a9343298e0682e9073 Mon Sep 17 00:00:00 2001 From: Martin Polanka Date: Fri, 14 Jul 2017 10:43:58 +0200 Subject: [PATCH] ports have type --- Exercise-Configuration.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Exercise-Configuration.md b/Exercise-Configuration.md index 526df96..413a244 100644 --- a/Exercise-Configuration.md +++ b/Exercise-Configuration.md @@ -210,6 +210,9 @@ Mandatory items are bold, optional italic, description of items follows: * **${implicit list of boxes}** - ... * **name** - ... * **portsIn** - ... + * ${name of the port} + * **type** - ... + * **value** - ... * **portsOut** - ... * **type** - ... @@ -220,37 +223,37 @@ Example: { "name":"source", "portsIn":[], - "portsOut":[{ "source_file":"source_file" }], + "portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }], "type":"data" }, { "name":"test", "portsIn":[], "portsOut":[{ - "test_file":"test_file", - "expected_output":"expected_output" + "test_file":[{"type":"file", "value":"test_file"}], + "expected_output":[{"type":"file", "value":"expected_output"}] }], "type":"data" }, { "name":"compilation", - "portsIn":[{ "input_file":"source_file" }], - "portsOut":[{ "output_file":"binary_file" }], + "portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }], + "portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }], "type":"compilation" }, { "name":"run", - "portsIn":[{ "binary_file":"binary_file" }], - "portsOut":[{ "output_file":"actual_output" }], + "portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }], + "portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }], "type":"execution" }, { "name":"judge", "portsIn":[{ - "actual_output":"actual_output", - "expected_output":"expected_output" + "actual_output":[{"type":"file", "value":"actual_output"}], + "expected_output":[{"type":"file", "value":"expected_output"}] }], - "portsOut":[{ "score":"score" }], + "portsOut":[{ "score":[{"type":"file", "value":"score"}] }], "type":"evaluation" } ]