summaryrefslogtreecommitdiff
path: root/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-12 14:26:44 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-12 14:29:39 +0100
commite97d9bf3f2cccf19a21631e26d55d60c9f4d7c7a (patch)
tree518a0924578d12394f6117a416ac7787f729be63 /opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt
parent67c8bc6cdd421262c4f59ce03506463a830af6e6 (diff)
refactor(#18): Align formatting with official Kotlin Style Guide
This change aligns the code formatting of the project with the official Kotlin Style Guide. They can be found at http://kotlinlang.org/docs/reference/coding-conventions.html.
Diffstat (limited to 'opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt')
-rw-r--r--opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt b/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt
index af13d1fd..32f27111 100644
--- a/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt
+++ b/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/MessageContainer.kt
@@ -24,9 +24,9 @@
package com.atlarge.opendc.omega
-import com.atlarge.opendc.simulator.Instant
import com.atlarge.opendc.simulator.Entity
import com.atlarge.opendc.simulator.Envelope
+import com.atlarge.opendc.simulator.Instant
/**
* A wrapper around a message that has been scheduled for processing.
@@ -38,11 +38,11 @@ import com.atlarge.opendc.simulator.Envelope
* @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl)
*/
internal data class MessageContainer(override val message: Any,
- val time: Instant,
- override val sender: Entity<*, *>?,
- override val destination: Entity<*, *>) : Envelope<Any> {
- /**
- * A flag to indicate the message has been canceled.
- */
- internal var canceled: Boolean = false
+ val time: Instant,
+ override val sender: Entity<*, *>?,
+ override val destination: Entity<*, *>) : Envelope<Any> {
+ /**
+ * A flag to indicate the message has been canceled.
+ */
+ internal var canceled: Boolean = false
}