summaryrefslogtreecommitdiff
path: root/odcsim-core/src/main
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2018-10-28 16:08:22 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2019-05-06 18:19:43 +0200
commit783a021a1cb6641d0494067b44fdc02f41630493 (patch)
tree692e2d0227e910b3139c242a4bb559ef0cfdbec1 /odcsim-core/src/main
parentdecb8fb5297c7772f5319a47c784d44bf8bdbe9c (diff)
test: Create initial test suite for API
This change creates the initial conformance test suite for the API design and tries to specify most of the requirements and assumptions made for implementors.
Diffstat (limited to 'odcsim-core/src/main')
-rw-r--r--odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
index 5a16c4d1..4dea9897 100644
--- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
+++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
@@ -43,11 +43,11 @@ interface ActorContext<in T : Any> {
/**
* Spawn a child actor from the given [Behavior] and with the specified name.
*
- * @param name The name of the child actor to spawn.
* @param behavior The behavior of the child actor to spawn.
+ * @param name The name of the child actor to spawn.
* @return A reference to the child that has/will be spawned.
*/
- fun <U : Any> spawn(name: String, behavior: Behavior<U>): ActorRef<U>
+ fun <U : Any> spawn(behavior: Behavior<U>, name: String): ActorRef<U>
/**
* Request the specified child actor to be stopped in asynchronous fashion.
@@ -55,5 +55,5 @@ interface ActorContext<in T : Any> {
* @param child The reference to the child actor to stop.
* @return `true` if the ref points to a child actor, otherwise `false`.
*/
- fun <U : Any> stop(child: ActorRef<U>): Boolean
+ fun stop(child: ActorRef<*>): Boolean
}