summaryrefslogtreecommitdiff
path: root/opendc-core/src/main
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-08-08 21:29:02 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-08-08 21:29:02 +0200
commit83cf936bd18e63b98f742e8c3a1df567085aea8e (patch)
treecf3bcb18ef35bfaa19ddc4e740a9247648c60899 /opendc-core/src/main
parentdd0777c659871fafc4633b9d37c75524af1964b2 (diff)
Add job identifier and name
Diffstat (limited to 'opendc-core/src/main')
-rw-r--r--opendc-core/src/main/kotlin/nl/atlarge/opendc/experiment/Job.kt4
1 files changed, 3 insertions, 1 deletions
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<Task>)
+data class Job(val id: Int, val name: String, val owner: User, val tasks: Collection<Task>)