From 83cf936bd18e63b98f742e8c3a1df567085aea8e Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 8 Aug 2017 21:29:02 +0200 Subject: Add job identifier and name --- opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opendc-core') diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt index e265a031..8c41735d 100644 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt +++ b/opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt @@ -27,8 +27,10 @@ package nl.atlarge.opendc.experiment /** * A job that is submitted to a cloud network, which consists of one or multiple [Task]s. * + * @param id The unique identifier of this job. + * @param name The name of this job. * @param owner The user to which the job belongs. * @param tasks The tasks of which the job consists. * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) */ -data class Job(val owner: User, val tasks: Collection) +data class Job(val id: Int, val name: String, val owner: User, val tasks: Collection) -- cgit v1.2.3