summaryrefslogtreecommitdiff
path: root/odcsim-core/src
AgeCommit message (Collapse)Author
2019-05-13feat: Expose actor context in coroutineFabian Mastenbroek
This change makes a `SuspendingBehavior` instance expose its `SuspendingActorContext` in the coroutine context, so suspending methods inside the coroutine can access the actor context.
2019-05-13feat: Add conversion methods between number and time typesFabian Mastenbroek
This change adds conversion methods from `Number` types into `Instant` and `Duration` instances.
2019-05-13feat: Add consistent exception handling in actor systemsFabian Mastenbroek
This change makes exception handling in actor systems consistent. Implementors should not propagate unhandled exceptions in actors to the (one of the) threads running the engine, but instead should stop the offending actor and continue running. Supervision of actors should be implemented within actor behavior instead. Since BehaviorInterpreter will propagate exceptions thrown by an actor, consumers of that API can use it to catch unhandled exceptions in an actor.
2019-05-13feat: Add support for suspending behaviorFabian Mastenbroek
This change adds support for suspending behavior via Kotlin's coroutine feature officially introduced in Kotlin 1.3. The syntax is similar to the 1.x version of the simulator to allow for easier porting to 2.x.
2019-05-13chore: Add linting via KtlintFabian Mastenbroek
This change adds support for linting the code base using ktlint and the excellent ktlint-gradle plugin.
2019-05-13refactor: Add support for deferred and special behaviorFabian Mastenbroek
This change adds support for deferred and special behavior in the Behavior API. Additionally, the new Behavior DSL is implemented using the new primitives to make the tests cleaner.
2019-05-06test: Create initial test suite for APIFabian Mastenbroek
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.
2019-05-06refactor: Introduce initial API design for 2.xFabian Mastenbroek
This change introduces the new API design that will be introduced in the 2.x versions of the OpenDC Simulator. This changes focuses on simplifying simulation primitives provided by the simulator and introduces a new concept of actors based on the model designed by the Akka Typed project. For now, the old simulation models have been removed from the branch, but will be ported back as this branch is being finalized.