summaryrefslogtreecommitdiff
path: root/odcsim-core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'odcsim-core/src/main')
-rw-r--r--odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt
index 71b10325..3ba5ce76 100644
--- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt
+++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt
@@ -24,10 +24,12 @@
package com.atlarge.odcsim
+import java.io.Serializable
+
/**
* A reference to an entity in simulation that accepts messages of type [T].
*/
-interface ActorRef<in T : Any> {
+interface ActorRef<in T : Any> : Comparable<ActorRef<*>>, Serializable {
/**
* The path for this actor (from this actor up to the root actor).
*/