summaryrefslogtreecommitdiff
path: root/odcsim/odcsim-engine-tests/build.gradle.kts
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-01-19 21:02:22 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-01-19 21:13:37 +0100
commit4d13f702c87bc195d8edbd19c5cd6567ecfd2af4 (patch)
tree3262880c18204adce76e3d4a8091d1b24b2b4c9a /odcsim/odcsim-engine-tests/build.gradle.kts
parentce952cf3f27c154e06cfa56ca1ad7db9ba3eac7c (diff)
refactor: Introduce revised API design for 2.x
This change introduces the revised API design for version 2.0 of the OpenDC simulator. This version drops built-in support for Java and instead opts to build on Kotlin coroutines to simplify the API surface. During development of and experimentation with the previous API for version 2.x, we found that the design based on Akka Typed was too limiting and caused too much boilerplate for the models we needed to implement. Essential patterns such as request-response were found to be hard to implement with only a single mailbox. Moveover, limiting each actor's mailbox to a single type hindered composition and often resulted in unchecked casts or the type being changed to `Any`, eliminating the type-safety of the API. In this revised API design, a simulation is now represented as the interplay of logical processes that communicate via multiple message passing channels. We use Kotlin coroutines to describe the behavior of the processes. The API has been design from the start to take into account distributed/parallel simulations by disallowing messages from arbitrary processes, which was possible in the previous design. Instead, the 'communication graph' is known during runtime as procsses must register themselves before being able to send/receive messages to/from channels. We are still figuring out process/channel identity and supervision. Currently, all logical processes run on a single level, instead of being hierachical. However, this might change in the future.
Diffstat (limited to 'odcsim/odcsim-engine-tests/build.gradle.kts')
-rw-r--r--odcsim/odcsim-engine-tests/build.gradle.kts42
1 files changed, 0 insertions, 42 deletions
diff --git a/odcsim/odcsim-engine-tests/build.gradle.kts b/odcsim/odcsim-engine-tests/build.gradle.kts
deleted file mode 100644
index e68070cc..00000000
--- a/odcsim/odcsim-engine-tests/build.gradle.kts
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * MIT License
- *
- * Copyright (c) 2019 atlarge-research
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-description = "Conformance suite for implementors of the odcsim API"
-
-/* Build configuration */
-plugins {
- `kotlin-library-convention`
-}
-
-/* Project configuration */
-repositories {
- jcenter()
-}
-
-dependencies {
- api(project(":odcsim:odcsim-api"))
-
- implementation(kotlin("stdlib"))
- implementation("org.junit.jupiter:junit-jupiter-api:${Library.JUNIT_JUPITER}")
-}