factories for composable flows
More...
#include <dena.h>
factories for composable flows
◆ every_n_steps()
static flow rocky::zagros::dena::run::every_n_steps |
( |
int |
n, |
|
|
const flow & |
wrapped_flow |
|
) |
| |
|
inlinestatic |
run a flow with given period
- Parameters
-
n | the period of running the flow |
wrapped_flow | |
- Returns
- * flow
◆ n_times()
static flow rocky::zagros::dena::run::n_times |
( |
int |
iters, |
|
|
const flow & |
wrapped_flow |
|
) |
| |
|
inlinestatic |
run the wrapped flow n
times [todo] there is a problem with the last node
- Parameters
-
iters | int number of iterations |
wrapped_flow | target flow for running |
- Returns
- * flow
◆ while_improve() [1/3]
static flow rocky::zagros::dena::run::while_improve |
( |
const flow & |
wrapped_flow | ) |
|
|
inlinestatic |
run a flow until the best solution does not improve
- Parameters
-
- Returns
- * flow
◆ while_improve() [2/3]
static flow rocky::zagros::dena::run::while_improve |
( |
int |
n, |
|
|
const flow & |
wrapped_flow |
|
) |
| |
|
inlinestatic |
run a flow until the best solution does not improve
- Parameters
-
n | maximum number of waiting before termination |
wrapped_flow | |
- Returns
- * flow
◆ while_improve() [3/3]
static flow rocky::zagros::dena::run::while_improve |
( |
std::string |
id, |
|
|
int |
n, |
|
|
const flow & |
wrapped_flow |
|
) |
| |
|
inlinestatic |
run a flow until the best solution of a container does not improve
- Parameters
-
id | the id of the target container |
n | maximum number of waiting before termination |
wrapped_flow | |
- Returns
- * flow
◆ with_probability()
static flow rocky::zagros::dena::run::with_probability |
( |
float |
prob, |
|
|
const flow & |
wrapped_flow |
|
) |
| |
|
inlinestatic |
run a flow with a specified probability
- Parameters
-
prob | the probability of running the flow |
wrapped_flow | |
- Returns
- * flow
The documentation for this class was generated from the following file: