Liking cljdoc? Tell your friends :D

automaton-simulation-de.registry

Event registry contains Event registry kv.

Event registry kv associates one event type to event execution.

Event registry contains Event registry kv.

Event registry kv associates one event type to event execution.

* [See entity](docs/archi/registry_entity.png)
raw docstring

add-registry-stopclj/s

(add-registry-stop response event)

getclj/s

(get event-registry event)

Get the execution based on the type.

Params:

  • event-registry is a map of event type to event execution
  • event event which code will be executed

Returns the execution function

  • with parameters:
    • state
    • future-events
    • event
  • Returns what changes in the scheduler-iteration (i.e. a map with state and future-events)
Get the execution based on the type.

Params:
* `event-registry` is a map of event type to event execution
* `event` event which code will be executed

Returns the execution function
* with parameters:
   * `state`
   * `future-events`
   * `event`
* Returns what changes in the `scheduler-iteration` (i.e. a map with `state` and `future-events`)
raw docstring

schemaclj/s

(schema)

Map associating event-type to event-execution. An event execution is updating the state and may trigger some new events to be added in the future events. The result of the event execution could be dependent on the state or random variable.

Map associating `event-type` to `event-execution`.
An event execution is updating the state and may trigger some new events to be added in the future events. The result of the event execution could be dependent on the state or random variable.
raw docstring

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

× close