public class ParallelTransfer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ParallelTransfer.Transfer
State transfer function.
|
Constructor and Description |
---|
ParallelTransfer(GenericSolver.SolverInterface c)
Constructs a new parallel transfer function.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ParallelTransfer.Transfer f)
Adds a transfer function.
|
<T> void |
addAll(java.util.Collection<T> ts,
java.util.function.Consumer<T> f)
Adds a collection of transfer functions that take a parameter.
|
void |
complete()
Applies the transfer functions in parallel on the current state and joins the results.
|
static <T> void |
process(java.util.Collection<T> ts,
java.util.function.Consumer<T> f,
GenericSolver.SolverInterface c)
Applies the transfer function on each of the given elements, in parallel on the current state, and joins the results.
|
public ParallelTransfer(GenericSolver.SolverInterface c)
public void add(ParallelTransfer.Transfer f)
public <T> void addAll(java.util.Collection<T> ts, java.util.function.Consumer<T> f)
public void complete()
public static <T> void process(java.util.Collection<T> ts, java.util.function.Consumer<T> f, GenericSolver.SolverInterface c)
Copyright © 2009-2019 Aarhus University