From 155a7fad1fff409cf91d6af6f613ed9b50fd21d7 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 28 Apr 2019 13:23:27 +0200 Subject: feat: Add proper identify implementation for ActorRef --- odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorRef.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odcsim-core/src/main') 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 { +interface ActorRef : Comparable>, Serializable { /** * The path for this actor (from this actor up to the root actor). */ -- cgit v1.2.3