diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-04-28 13:23:27 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-13 20:26:47 +0200 |
| commit | 155a7fad1fff409cf91d6af6f613ed9b50fd21d7 (patch) | |
| tree | 3e774701da28aa9f49abf97ce6bd9751ddff3753 /odcsim-core | |
| parent | 4e6920d5c128b49750408a11850dfa6a7abb1e9e (diff) | |
feat: Add proper identify implementation for ActorRef
Diffstat (limited to 'odcsim-core')
| -rw-r--r-- | odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt | 4 |
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). */ |
