holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

Allow merging of simulations #25

Closed holgerbrandl closed 1 year ago

holgerbrandl commented 2 years ago

It shall support the following API

val env1 = Environment()
val env2 = Environment()

val envMerged = env1 + env2
envMerged.run(10)

This will allow modelling more complex child-parent relations separately. E.g. a department of a store could be modelled and then be bound into a shopping mall model itself.

Note: Unless we can support branching, the original environments will not be functional by themself after merging.

holgerbrandl commented 1 year ago

Won't fix, see release notes v0.8