From cfd559b6fadd7753348e0180743b606048cdae65 Mon Sep 17 00:00:00 2001 From: Martin Polanka Date: Thu, 31 Aug 2017 11:26:51 +0200 Subject: [PATCH] Bit of formatting touches --- Exercise-Configuration.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Exercise-Configuration.md b/Exercise-Configuration.md index 0b35bce..aa07672 100644 --- a/Exercise-Configuration.md +++ b/Exercise-Configuration.md @@ -2,16 +2,16 @@ In ReCodEx there are two configurations of exercise High Level Configuration (HiLC) and Low Level Configuration (LoLC). LoLC is used in backend, by workers for instance and should be general enough to create all kinds of worker tasks. On the other hand HiLC should be easy enough to be written or composed by normal application users, preferably in the form of graphical editation. But this configuration always has to be somehow stored, that is where this document comes in handy. -HiLC is divided in several parts which takes care of different things. There are ExerciseConfig, Pipelines, Limits and RuntimeConfig. From these components configuration of exercise is composed and on every submit new LoLC is compiled from it. +HiLC is divided in several parts which takes care of different things. There are **ExerciseConfig**, **Pipelines**, **Limits** and **EnvironmentConfig**. From these components configuration of exercise is composed and on every submit new LoLC is compiled from it. ## Variables and Ports In whole exercise configuration and appropriate structures variables and ports are used. All have to have a type. It was decided that there will be four types which should be sufficient for every possible usage. List of them follows: -* string - ... -* string[] - array of strings -* file - ... -* file[] - array of files +* **string** - textual value +* **string[]** - array of strings +* **file** - corresponds to file created or given during evaluation of submission +* **file[]** - array of files ## ExerciseConfig @@ -329,6 +329,8 @@ test-id-2: ## ExerciseEnvironmentConfig +Configuration for particular environments is stored here. This configuration can be seen in two formats the one which is returned to the web-app and the one in which configuration is stored. Environment configuration is stored in individual database entities, but it is desirable to return it as a whole for the whole exercise. Hence there appears to be two formats, both of them are described bellow. + ### Frontend Format Mandatory items are bold, optional italic, description of items follows: @@ -399,4 +401,4 @@ variablesTable: - name: source_file type: file value: source.cpp -``` \ No newline at end of file +```