Package com.rpl.agentorama
Interface MultiAgg.Impl
- Enclosing interface:
MultiAgg
public static interface MultiAgg.Impl
Builder interface for configuring multi-aggregators.
-
Method Summary
Modifier and TypeMethodDescription<S> MultiAgg.Implinit(com.rpl.rama.ops.RamaFunction0<S> impl) Sets the initial value function for the aggregation.<S> MultiAgg.ImplAdds a dispatch handler for zero arguments.<S,T0> MultiAgg.Impl Adds a dispatch handler for one argument.<S,T0, T1>
MultiAgg.ImplAdds a dispatch handler for two arguments.<S,T0, T1, T2>
MultiAgg.ImplAdds a dispatch handler for three arguments.<S,T0, T1, T2, T3>
MultiAgg.ImplAdds a dispatch handler for four arguments.<S,T0, T1, T2, T3, T4>
MultiAgg.ImplAdds a dispatch handler for five arguments.<S,T0, T1, T2, T3, T4, T5>
MultiAgg.ImplAdds a dispatch handler for six arguments.<S,T0, T1, T2, T3, T4, T5, T6>
MultiAgg.ImplAdds a dispatch handler for seven arguments.
-
Method Details
-
init
Sets the initial value function for the aggregation.- Parameters:
impl- function that returns the initial aggregation value- Returns:
- this builder for method chaining
-
on
Adds a dispatch handler for zero arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus zero arguments- Returns:
- this builder for method chaining
-
on
Adds a dispatch handler for one argument.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus one argument- Returns:
- this builder for method chaining
-
on
Adds a dispatch handler for two arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus two arguments- Returns:
- this builder for method chaining
-
on
<S,T0, MultiAgg.Impl onT1, T2> (String name, com.rpl.rama.ops.RamaFunction4<S, T0, T1, T2, Object> impl) Adds a dispatch handler for three arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus three arguments- Returns:
- this builder for method chaining
-
on
<S,T0, MultiAgg.Impl onT1, T2, T3> (String name, com.rpl.rama.ops.RamaFunction5<S, T0, T1, T2, T3, Object> impl) Adds a dispatch handler for four arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus four arguments- Returns:
- this builder for method chaining
-
on
<S,T0, MultiAgg.Impl onT1, T2, T3, T4> (String name, com.rpl.rama.ops.RamaFunction6<S, T0, T1, T2, T3, T4, Object> impl) Adds a dispatch handler for five arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus five arguments- Returns:
- this builder for method chaining
-
on
<S,T0, MultiAgg.Impl onT1, T2, T3, T4, T5> (String name, com.rpl.rama.ops.RamaFunction7<S, T0, T1, T2, T3, T4, T5, Object> impl) Adds a dispatch handler for six arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus six arguments- Returns:
- this builder for method chaining
-
on
<S,T0, MultiAgg.Impl onT1, T2, T3, T4, T5, T6> (String name, com.rpl.rama.ops.RamaFunction8<S, T0, T1, T2, T3, T4, T5, T6, Object> impl) Adds a dispatch handler for seven arguments.- Parameters:
name- the dispatch target nameimpl- the handler function that takes the current aggregation value plus seven arguments- Returns:
- this builder for method chaining
-