Class MultiGrader
-
- All Implemented Interfaces:
public final class MultiGrader
A 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 class
MultiGrader.Builder
A builder for MultiGrader.
public final class
MultiGrader.Graders
-
Method Summary
Modifier and Type Method Description final String
calculateOutput()
A formula to calculate the output based on grader results. final MultiGrader.Graders
graders()
final String
name()
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.Builder
toBuilder()
final MultiGrader
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MultiGrader.Builder
builder()
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()
-
_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()
-
-
-
-