Module ecto_test¶
ecto.ecto_test¶
SleepPyObjectAbuser¶
Brief doc
Sleep for a bit while in process, according to a list of sleep times.
Parameters
list_o_sleeps
boost::python::api::object
A sequence of sleeps.
Inputs
in
boost::posix_time::ptime
input
Outputs
out
boost::posix_time::ptime
output
Emit_none¶
Brief doc
Emit_none
Outputs
output
ecto::tendril::none
output
DontAllocateMe¶
Brief doc
Don’t allocate me, feel free to inspect.
Parameters
str
std::string
Outputs
str
std::string
RequiredIO¶
Brief doc
RequiredIO test module
Inputs
in
double
required input
Outputs
out
double
required output
Ping¶
Brief doc
Ping as fast as you can, send the current time downstream
Outputs
out
boost::posix_time::ptime
output
NoPythonBindings¶
Brief doc
Uses something that is bound to python
Parameters
Woz
ecto_test::EvilNoPython
A Woz is a Woz when a Woz was Woz
Outputs
Strasz
ecto_test::EvilNoPython
A Strasz is a Strasz when a Strasz saw a Strasz
Emit_float¶
Brief doc
Emit_float
Outputs
output
float
output
Add¶
Brief doc
Add two doubles together.
Inputs
left
double
Left hand operand.
right
double
Right hand operand.
Outputs
out
double
The result.
BreakEveryN¶
Brief doc
Pass on a values but break every Nth iteration.
Parameters
n
unsigned long
1
Break on every nth process.
Inputs
in
ecto::tendril::none
Any input
Outputs
out
ecto::tendril::none
Any input
HandleHolder¶
Brief doc
Holds on to handles...
Parameters
value
double
1.0
I use this value
Inputs
input
double
input
Outputs
output
double
output
value
double
the parameter.
Throttle¶
Brief doc
Throttle to a certain Hz frequency
Parameters
rate
double
1.0
Do not pass data more quickly than this many hz
Inputs
in
ecto::tendril::none
input
Outputs
out
ecto::tendril::none
input
FileI¶
Brief doc
Reads doubles from a file like object
Parameters
file
boost::shared_ptr<std::istream>
A filelike object
Outputs
output
double
A double output.
LatticeSleep¶
Brief doc
Node with N inputs and N outputs, sleeps for a random period on each process()
Parameters
n
unsigned int
1
number of ins and outs
Inputs
in0
ecto::tendril::none
input
Outputs
out0
ecto::tendril::none
output
FileO¶
Brief doc
Writes doubles to a file like object
Parameters
file
boost::shared_ptr<std::ostream>
A filelike object
Inputs
input
double
A double input.
Printer¶
Brief doc
A printer of int, double, string, bool. Use the print_type parameter to specify type. Default is double
Parameters
print_type
std::string
double
The type string for what i’m to print... int, double, bool, string.
Inputs
in
double
what to print
Metrics¶
Brief doc
Calcluate bandwidth and latency based on timestamps received from an upstream ping.
Parameters
queue_size
unsigned int
10
size of window to collect statistics over
Inputs
in
boost::posix_time::ptime
input
Outputs
hz
double
latency_seconds
double
Emit_Struct¶
Brief doc
Emit_Struct
Outputs
output
ecto_test::Struct
output
Emit_bool¶
Brief doc
Emit_bool
Outputs
output
bool
output
Multiply¶
Brief doc
Multiply an input by a constant
Parameters
factor
double
3.14
A factor to multiply by.
Inputs
in
double
multly in by factor
Outputs
out
double
the result of in * factor
ParameterWatcher¶
Brief doc
Uses parameter change callbacks.
Parameters
value
double
1.0
I use this value
Inputs
input
double
input
Outputs
output
double
output
value
double
the parameter.
Uniform01¶
Brief doc
Generate random doubles uniformly distributed on [0, 1)
Parameters
ncalls
unsigned int
1
Call this many times, return only the last. Used to generate CPU load in testing.
seed
unsigned int
Seed. By default the RNG is seeded from the system time.
Outputs
out
double
output
Gather¶
Brief doc
Gather ints
Parameters
n
int
2
N to gather
Inputs
in_0000
int
An intinput.
in_0001
int
An intinput.
Outputs
out
int
The sum of all inputs.
QuitAfter¶
Brief doc
Quits the graph after so many process calls
Parameters
N
unsigned int
Quit after this many calls to process()
Inputs
in
double
An inbox
Outputs
out
double
outbox
Scatter¶
Brief doc
Scatter a value...
Parameters
n
int
2
Number to scatter...
x
int
13
The value to scatter...
Outputs
out_0000
int
The 0th scatter
out_0001
int
The 1th scatter
StartStopCounter¶
Brief doc
Count numbers of starts, stops, processes, etc.
Inputs
in
ecto::tendril::none
An inbox
Outputs
nconfigure
unsigned int
nprocess
unsigned int
nstart
unsigned int
nstop
unsigned int
out
ecto::tendril::none
An inbox
Quitter¶
Brief doc
Will quit the graph on some certain input
Parameters
str
std::string
EXIT
The default string to print
Inputs
str
std::string
The input string to listen to.
Gather_double¶
Brief doc
Gather doubles
Parameters
n
int
2
N to gather
Inputs
in_0000
double
An doubleinput.
in_0001
double
An doubleinput.
Outputs
out
double
The sum of all inputs.
Accept_float¶
Brief doc
Accept_float
Inputs
input
float
input
Generate¶
Brief doc
Generate doubles
Parameters
start
double
0.0
My starting value.
step
double
2.0
The step with which i generate integers.
stop
double
0.0
Stop if the generated value exceeds this upper bound (0 implies no upper bound)
Outputs
out
double
The starting value + (step * iterations).
DontCallMeFromTwoThreads¶
Brief doc
Throws if process called concurrently from two threads.
Inputs
in
double
Outputs
out
double
Emit_int¶
Brief doc
Emit_int
Outputs
output
int
output
Accept_int¶
Brief doc
Accept_int
Inputs
input
int
input
CantCallMeFromTwoThreads¶
Brief doc
Throws if process called concurrently from two threads, but you shouldn’t. be able to provoke this crash because (FIXME)
Inputs
in
double
Outputs
out
double
Accept_none¶
Brief doc
Accept_none
Inputs
input
ecto::tendril::none
input
DoOverFor¶
Brief doc
Returns ecto::DO_OVER for so many process calls, and returns ecto::OK every current mod N
Parameters
N
unsigned int
Return ecto::DO_OVER from process() this many times
Inputs
in
double
An inbox
Outputs
current
unsigned int
out
double
outbox
Accept_bool¶
Brief doc
Accept_bool
Inputs
input
bool
input
Accept_string¶
Brief doc
Accept_string
Inputs
input
std::string
input
BpObjectToCellPtr¶
Brief doc
Takes a cell ptr as a bp object.
Inputs
cell
boost::python::api::object
a cell ptr
ThrowAfter¶
Brief doc
Throw after so many process calls
Parameters
N
unsigned int
Throw in the N-th call to process()
Inputs
in
double
An inbox
Outputs
out
double
outbox
ExceptInConstructor¶
Brief doc
A bad cell
PassthroughAny¶
Brief doc
Constant node always outputs same value.
Inputs
in
ecto::tendril::none
Any type
Outputs
out
ecto::tendril::none
Any type
Accumulator¶
Brief doc
Add inputs (potentially from different threads) to an incrementally accumulating sum.
Inputs
left
double
Left hand operand.
right
double
Right hand operand.
Outputs
out
double
The current accumulation.
RequiredInput¶
Brief doc
Required input.
Inputs
in
double
an input
Outputs
out
double
The input + x
Accept_Struct¶
Brief doc
Accept_Struct
Inputs
input
ecto_test::Struct
input
ConfigureCalledOnce¶
Brief doc
Throw’s an error if configure is called more than once.
RequiredParam¶
Brief doc
Required parameter
Parameters
x
double
A required parameter.
Inputs
in
double
an input
Outputs
out
double
The input + x
Sleep¶
Brief doc
Sleep for a bit while in process
Parameters
seconds
double
1.0
sleep this many seconds
Inputs
in
boost::posix_time::ptime
input
Outputs
out
boost::posix_time::ptime
output
Increment¶
Brief doc
Increment input by some amount
Parameters
amount
double
1.0
Amount to increment by.
delay
unsigned int
0
How long it takes to increment in milliseconds
Inputs
in
double
input
Outputs
out
double
output
Emit_string¶
Brief doc
Emit_string
Outputs
output
std::string
output