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)
(add-stop request m)
Adds to the request
the map m
among stop causes.
Adds to the `request` the map `m` among stop causes.
(build current-event event-execution snapshot sorting stop)
Builds a request for the middleware, with iteration dependant data.
Returns a map, with the data necessary for the request.
Builds a request for the middleware, with iteration dependant data. Returns a map, with the data necessary for the request.
(prepare current-event event-execution snapshot sorting)
Creates a request, based on:
event-execution
that will be executed,snapshot
of the state of the simulation engine before this iteration,sorting
function that take the future events and returns sorted future eventsReturns the request gathering the snapshot, the sorting, stopping reasons.
Predefined stopping reasons are when no future events exist.
Creates a request, based on: * `event-execution` that will be executed, * a `snapshot` of the state of the simulation engine before this iteration, * `sorting` function that take the future events and returns sorted future events Returns the request gathering the snapshot, the sorting, stopping reasons. Predefined stopping reasons are when no future events exist.
(schema)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close