Liking cljdoc? Tell your friends :D

automaton-simulation-de.simulation-engine.response

Is a response of scheduler.

It contains:

  • stopping-causes
  • snapshot.
Is a response of scheduler.

It contains:
* `stopping-causes`
* `snapshot`.
raw docstring

add-current-event-to-stopping-causesclj/s

(add-current-event-to-stopping-causes response current-event)

Adds current-event to stopping-causes in the response.

Adds `current-event` to `stopping-causes` in the `response`.
raw docstring

add-stopping-causeclj/s

(add-stopping-cause
  response
  {:automaton-simulation-de.simulation-engine/keys [stopping-causes] :as m})

Adds map m among stop-causes.

Adds map `m` among `stop-causes`.
raw docstring

consume-first-eventclj/s

(consume-first-event {:automaton-simulation-de.simulation-engine/keys [snapshot]
                      :as response}
                     current-event)

Moves the response to the next operation. current-event is added to the stopping-cause if causality is broken. Consists in:

  • removing the first event in the future-events and push it in past-event.
  • adding ::sim-engine/causality-broken stopping-cause if that event is coming back to the past. Note that in case causality is broken, the date is not modified and keep the previous snapshot date instead of the faulty event date.
Moves the `response` to the next operation. `current-event` is added to the `stopping-cause` if causality is broken.
Consists in:

* removing the first event in the `future-events` and push it in `past-event`.
* adding `::sim-engine/causality-broken` `stopping-cause` if that event is coming back to the past.
Note that in case causality is broken, the date is not modified and keep the previous snapshot date instead of the faulty event date.
raw docstring

schemaclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close