|
| 1 | +syntax = "proto3"; |
| 2 | + |
| 3 | +package org.sourcegrade.lab.model.rubric; |
| 4 | + |
| 5 | +import "number_range.proto"; |
| 6 | +import "point_range.proto"; |
| 7 | +import "test_run.proto"; |
| 8 | +import "criterion_accumulator.proto"; |
| 9 | +import "showcase_string.proto"; |
| 10 | + |
| 11 | +// Represents a criterion in a rubric. |
| 12 | +message Criterion { |
| 13 | + // The id of the criterion. |
| 14 | + string id = 1; |
| 15 | + // The name of the criterion. |
| 16 | + ShowcaseString name = 2; |
| 17 | + // The description of the criterion. |
| 18 | + ShowcaseString description = 3; |
| 19 | + // The possible amount of points that can be achieved. |
| 20 | + NumberRange possible_points = 4; |
| 21 | + // The points that have been achieved. |
| 22 | + PointRange achieved_points = 5; |
| 23 | + // The message displayed if the criterion is not fulfilled. |
| 24 | + ShowcaseString message = 6; |
| 25 | + // Tests used to determine the achieved points. |
| 26 | + repeated TestRun tests = 7; |
| 27 | + // The accumulator used to determine the achieved points. |
| 28 | + CriterionAccumulator test_accumulator = 8; |
| 29 | + // The children of the criterion. |
| 30 | + repeated Criterion children = 9; |
| 31 | + // The accumulator used to determine the achieved points of the children. |
| 32 | + CriterionAccumulator children_accumulator = 10; |
| 33 | +} |
0 commit comments