Liking cljdoc? Tell your friends :D
All platforms.

automaton-simulation-de.middleware.request

Build a request for an handler.

Contains a stop, the scheduler snapshot and the current event.

Build a request for an handler.

Contains a stop, the scheduler snapshot and the current event.

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

buildclj/s

(build event-execution snapshot sorting stop)

Builds a request for the middleware, with iteration dependant data and default values.

Returns a map, with the data necessary for the request.

Params:

  • event-execution
  • scheduler-snapshot
  • sorting
  • stop
Builds a request for the middleware, with iteration dependant data and default values.

Returns a map, with the data necessary for the request.

Params:
* `event-execution`
* `scheduler-snapshot`
* `sorting`
* `stop`
raw docstring

prepareclj/s

(prepare event-execution snapshot sorting)

Creates a request, based on event execution, snapshot and sorting

Returns the request gathering the snapshot, the sorting, stopping reasons.

Predefined stopping reasons are when no future events exist.

Params:

  • event-execution event execution, fn that takes a snapshot and return a event-return
  • snapshot the snapshot before the iteration
  • sorting function that take the future events and returns sorted future events
Creates a request, based on event execution, snapshot and sorting

Returns the request gathering the snapshot, the sorting, stopping reasons.

Predefined stopping reasons are when no future events exist.

Params:
* `event-execution` event execution, fn that takes a snapshot and return a event-return
* `snapshot` the snapshot before the iteration
* `sorting` function that take the future events and returns sorted future events
raw docstring

schemaclj/s

(schema)

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

× close