Assignment

data class Assignment: Any

Represents an Assignment, which is a problem to be solved by a student or group of students.

Fields

Name Description
val tags: @ManyToMany(cascade = [CascadeType.ALL])

is a Set of AssignmentTag.

val id: String

is a String that uniquely identifies the Assignment

var name: String

is a String representing the name of the Assignment

var packageName: String?

is a String with the (optional) Assignment's expected package (e.g. all the code should be placed in this package)

var dueDate: LocalDateTime?

is an optional LocalDateTime with the submission deadline

var submissionMethod: SubmissionMethod

is a SubmissionMethod

var language: Language

is the programming Language that the code should be written in

var acceptsStudentTests: Boolean

is a Boolean, indicating if the students are allowed to submit their own unit tests

var minStudentTests: Int?

is an optional Integer, indicating the minimum number of unit tests that students are asked to implement

var calculateStudentTestsCoverage: Boolean

is an optional Boolean, indicating if the test coverage should be calculated for student's own tests

var hiddenTestsVisibility: TestVisibility?
var cooloffPeriod: Int?

is an optional Integer with the number of minutes that students must wait between consecutive submissions

var maxMemoryMb: Int?

is an optional Integer, indicating the maximum number of Mb that the student's code can use

var showLeaderBoard: Boolean

is a Boolean, indicating if the leaderboard page should be active for this Assignment

var leaderboardType: LeaderboardType?

is a LeaderboardType

val gitRepositoryUrl: String

is a String with the location of the git repository used to create the Assignment

var gitRepositoryPubKey: String?

is a String with the Public Key of the git repository

var gitRepositoryPrivKey: String?

is a String the Private Key of the git repository

var gitRepositoryFolder: String
val ownerUserId: String

is a String with the user id of the user that created the Assignment

var active: Boolean

is a Boolean indicating if the Assignment can receive submissions from students

var archived: Boolean

is a Boolean indicating if the Assignment has been archived

var buildReportId: Long?

is a Long, representing the Id of the Assignment's BuildReport

var numSubmissions: Int

is an Int, representing to total number of submissions in the repository

var numUniqueSubmitters: Int
var public: Boolean

is a Boolean, indicating if the assignment is accessible to everyone or only to registered Assignees

var lastSubmissionDate: Date?

is a Date, containing the date of the last submission performed for this Assignment

Constructors

<init>

constructor(id: String, name: String, packageName: String?, dueDate: LocalDateTime?, submissionMethod: SubmissionMethod, language: Language, acceptsStudentTests: Boolean, minStudentTests: Int?, calculateStudentTestsCoverage: Boolean, hiddenTestsVisibility: TestVisibility?, cooloffPeriod: Int?, maxMemoryMb: Int?, showLeaderBoard: Boolean, leaderboardType: LeaderboardType?, gitRepositoryUrl: String, gitRepositoryPubKey: String?, gitRepositoryPrivKey: String?, gitRepositoryFolder: String, ownerUserId: String, active: Boolean, archived: Boolean, buildReportId: Long?, numSubmissions: Int, numUniqueSubmitters: Int, public: Boolean, lastSubmissionDate: Date?)

Represents an Assignment, which is a problem to be solved by a student or group of students.

Parameters

Name Description
id: String
name: String
packageName: String?
dueDate: LocalDateTime?
submissionMethod: SubmissionMethod
language: Language
acceptsStudentTests: Boolean
minStudentTests: Int?
calculateStudentTestsCoverage: Boolean
hiddenTestsVisibility: TestVisibility?
cooloffPeriod: Int?
maxMemoryMb: Int?
showLeaderBoard: Boolean
leaderboardType: LeaderboardType?
gitRepositoryUrl: String
gitRepositoryPubKey: String?
gitRepositoryPrivKey: String?
gitRepositoryFolder: String
ownerUserId: String
active: Boolean
archived: Boolean
buildReportId: Long?
numSubmissions: Int
numUniqueSubmitters: Int
public: Boolean
lastSubmissionDate: Date?

Methods

dueDateFormatted

fun dueDateFormatted(): String?

ReturnValue

Name Description
String?