Class MultiGrader
-
- All Implemented Interfaces:
public final class MultiGraderA MultiGrader object combines the output of multiple graders to produce a single score.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMultiGrader.BuilderA builder for MultiGrader.
public final classMultiGrader.GradersA StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
Method Summary
Modifier and Type Method Description final StringcalculateOutput()A formula to calculate the output based on grader results. final MultiGrader.Gradersgraders()A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. final Stringname()The name of the grader. final JsonValue_type()The object type, which is always multi.final JsonField<String>_calculateOutput()Returns the raw JSON value of calculateOutput. final JsonField<MultiGrader.Graders>_graders()Returns the raw JSON value of graders. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final MultiGrader.BuildertoBuilder()final MultiGradervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MultiGrader.Builderbuilder()Returns a mutable builder for constructing an instance of MultiGrader. -
-
Method Detail
-
calculateOutput
final String calculateOutput()
A formula to calculate the output based on grader results.
-
graders
final MultiGrader.Graders graders()
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
_type
final JsonValue _type()
The object type, which is always
multi.Expected to always return the following:
JsonValue.from("multi")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_calculateOutput
final JsonField<String> _calculateOutput()
Returns the raw JSON value of calculateOutput.
Unlike calculateOutput, this method doesn't throw if the JSON field has an unexpected type.
-
_graders
final JsonField<MultiGrader.Graders> _graders()
Returns the raw JSON value of graders.
Unlike graders, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MultiGrader.Builder toBuilder()
-
validate
final MultiGrader validate()
-
builder
final static MultiGrader.Builder builder()
Returns a mutable builder for constructing an instance of MultiGrader.
The following fields are required:
.calculateOutput() .graders() .name()
-
-
-
-