An aggregate
is a value object used to define a group of bucket
s that is homogeneously aggregated in bucket-aggregate
.
start-bucket
is the first bucket
of the aggregate (start-bucket ∈ ℕ
).end-bucket
is the last bucket
concerned with that aggregate - end-bucket
is excluded - (end-bucket ∈ ℕ
or nil
).step
is the number of bucket
s gathered in that aggregate
, step ∈ ℕ*
Note that without knowing the other aggregate
in the aggregates
, the targeted bucket-aggregate
are not fully defined.
An `aggregate` is a value object used to define a group of `bucket`s that is homogeneously aggregated in `bucket-aggregate`. * `start-bucket` is the first `bucket` of the aggregate (`start-bucket ∈ ℕ`). * `end-bucket` is the last `bucket` concerned with that aggregate - `end-bucket` is excluded - (`end-bucket ∈ ℕ` or `nil`). * `step` is the number of `bucket`s gathered in that `aggregate`, `step ∈ ℕ*` Note that without knowing the other `aggregate` in the `aggregates`, the targeted `bucket-aggregate` are not fully defined. ![Aggregate entity diagram](archi/time_based/aggregate.png)
(default {:automaton-optimization.time-based/keys [step] :as aggregate})
Default step
to 1
.
Default `step` to `1`.
(set-end-bucket
{:automaton-optimization.time-based/keys [end-bucket] :as aggregate}
{:automaton-optimization.time-based/keys [start-bucket] :as _next-aggregate})
For an aggregate
, its end-bucket
is :
start-bucket
of the next-aggregate
if set.For an `aggregate`, its `end-bucket` is : * not modified is already set, * defaulted to `start-bucket` of the `next-aggregate` if set.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close