| Age | Commit message (Collapse) | Author |
|
This change fixes the bug where suspending immediately after launching
the coroutine, without replacing the current behavior causes a failure
in the BehaviorInterpreter. This is because the initial behavior was not
properly set.
|
|
|
|
This change adds a StashBuffer to stash messages temporarily for
processing at a later moment.
|
|
This change makes the behavior for spawning and stopping a child actor
more consistent and better specified in the documentation.
|
|
This change adds support for spawning anonymous children in an
ActorContext. This means a name does not have to be specified when
spawning an actor.
|
|
This change adds a Behavior constructor for delaying the construction of
another Behavior instance.
|
|
This change adds support for tracking termination of actors in the
system.
|
|
This change formats the code according to the style guide of Ktlint.
|
|
This change adds support for timers in Behavior, in order to simplify
sending messages to the `self` actor.
|
|
This change adds methods to improve the composability of multiple
Behaviors, such as joining together two behaviors. Furthermore, this
change adds methods for juggling with Behavior message types.
|
|
This change adds a testkit for synchronously testking Behavior
implementations.
|
|
This change adds an actor-specific logging instance to ActorContext,
which allows consumers to log messages via the SLF4J API.
|
|
|
|
This change adds support for terminating an ActorSystem.
|
|
This change moves the implementation conformance test suite from the
test sources of `odcsim-core` to a new `odcsim-engine-tests` module in
order to simplify Gradle configuration.
|
|
This change makes it mandatory to send messages to an actor via the
sender's ActorContext in order for the engine to maintain consistency
in time between actors.
|
|
This change adds the initial interface design for parallel simulations,
which requires explicit synchronization between actors in order to
establish consistent virtual time between them.
|
|
This change makes a `SuspendingBehavior` instance expose its
`SuspendingActorContext` in the coroutine context, so suspending methods
inside the coroutine can access the actor context.
|
|
This change adds conversion methods from `Number` types into `Instant`
and `Duration` instances.
|
|
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.
|
|
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.
|
|
This change adds support for linting the code base using ktlint and the
excellent ktlint-gradle plugin.
|
|
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.
|
|
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.
|
|
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.
|