Context

data class Context(val submission: Configuration.Context.PathMapping, val template: Configuration.Context.PathMapping, val skeleton: Configuration.Context.PathMapping, val provided: Configuration.Context.PathMapping, val generated: Configuration.Context.PathMapping, val srcName: String, val inPaths: Configuration.Context.EnvMapping, val outPathsRoots: Configuration.Context.EnvMapping, val logPaths: Configuration.Context.EnvMapping, val compressionName: String? = "gz", val _eraseOutputDirOnShutdown: String = "") : ConfigVerifiable

Context properties fields (context.*).

Fields under the context root namespace are properties which affect how the Grader retrieves files to grade and where the grader emits output files.

Constructors

Link copied to clipboard
constructor(submission: Configuration.Context.PathMapping, template: Configuration.Context.PathMapping, skeleton: Configuration.Context.PathMapping, provided: Configuration.Context.PathMapping, generated: Configuration.Context.PathMapping, srcName: String, inPaths: Configuration.Context.EnvMapping, outPathsRoots: Configuration.Context.EnvMapping, logPaths: Configuration.Context.EnvMapping, compressionName: String? = "gz", _eraseOutputDirOnShutdown: String = "")

Types

Link copied to clipboard
data class EnvMapping(val graderHostRoot: String, val envHostRoot: String) : ConfigVerifiable
Link copied to clipboard
data class PathMapping(val src: String, val dst: String) : ConfigVerifiable

Properties

Link copied to clipboard
Link copied to clipboard

The compression algorithm to use for compressing reports.

Link copied to clipboard

Whether to erase the output directories when stopping the grader.

Link copied to clipboard
Link copied to clipboard

Paths which store the input files.

Link copied to clipboard

Paths which store the temporary files used when executing runner containers.

Link copied to clipboard

Paths which store the output files.

Link copied to clipboard

Path mapping for provided files.

Link copied to clipboard

Path mapping for skeleton files.

Link copied to clipboard

Directory name to aggregate all source files.

Link copied to clipboard

Path mapping for submission files.

Link copied to clipboard

Path mapping for template files.

Functions

Link copied to clipboard
fun getGeneratedAssignSrc(assignmentConfigId: Long): String

fun getGeneratedAssignSrc(assignmentConfigId: String): String

Retrieves the path to the assignment-specific generated files, with the placeholders replaced by assignmentConfigId.

Link copied to clipboard
fun getGeneratedSubSrc(submissionId: Long): String

fun getGeneratedSubSrc(submissionId: String): String

Retrieves the path to the submission-specific generated files, with the placeholders replaced by submissionId.

Link copied to clipboard
fun getProvidedSrc(assignmentConfigId: Long): String

fun getProvidedSrc(assignmentConfigId: String): String

Retrieves the path to the provided source set, with the placeholders replaced by assignmentConfigId.

Link copied to clipboard
fun getSkeletonSrc(assignmentConfigId: Long): String

fun getSkeletonSrc(assignmentConfigId: String): String

Retrieves the path to the skeleton source set, with the placeholders replaced by assignmentConfigId.

Link copied to clipboard
fun getSubmissionSrc(submissionId: Long): String

fun getSubmissionSrc(submissionId: String): String

Retrieves the path to the submission source set, with the placeholders replaced by submissionId.

Link copied to clipboard
fun getTemplateSrc(assignmentConfigId: Long): String

fun getTemplateSrc(assignmentConfigId: String): String

Retrieves the path to the template source set, with the placeholders replaced by assignmentConfigId.

Link copied to clipboard
open fun verifyAll()

Verifies that the required constraints of this object is met.

Link copied to clipboard
open override fun verifyImpl()

Additional checks for verifying constraints on fields which do not implement ConfigVerifiable.