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   type: boost::python::api::object    not required   no default value

    A sequence of sleeps.

Inputs

  • in   type: boost::posix_time::ptime   

    input

Outputs

  • out   type: boost::posix_time::ptime   

    output

Emit_none

Brief doc

Emit_none

Outputs

  • output   type: ecto::tendril::none   

    output

DontAllocateMe

Brief doc

Don’t allocate me, feel free to inspect.

Parameters

  • str   type: std::string    not required   no default value

Outputs

  • str   type: std::string   

RequiredIO

Brief doc

RequiredIO test module

Inputs

  • in   type: double   

    required input

Outputs

  • out   type: double   

    required output

Ping

Brief doc

Ping as fast as you can, send the current time downstream

Outputs

  • out   type: boost::posix_time::ptime   

    output

NoPythonBindings

Brief doc

Uses something that is bound to python

Parameters

  • Woz   type: ecto_test::EvilNoPython    not required   no default value

    A Woz is a Woz when a Woz was Woz

Outputs

  • Strasz   type: ecto_test::EvilNoPython   

    A Strasz is a Strasz when a Strasz saw a Strasz

Emit_float

Brief doc

Emit_float

Outputs

  • output   type: float   

    output

Add

Brief doc

Add two doubles together.

Inputs

  • left   type: double   

    Left hand operand.

  • right   type: double   

    Right hand operand.

Outputs

  • out   type: double   

    The result.

BreakEveryN

Brief doc

Pass on a values but break every Nth iteration.

Parameters

  • n   type: unsigned long    not required   default: 1

    Break on every nth process.

Inputs

  • in   type: ecto::tendril::none   

    Any input

Outputs

  • out   type: ecto::tendril::none   

    Any input

HandleHolder

Brief doc

Holds on to handles...

Parameters

  • value   type: double    not required   default: 1.0

    I use this value

Inputs

  • input   type: double   

    input

Outputs

  • output   type: double   

    output

  • value   type: double   

    the parameter.

Throttle

Brief doc

Throttle to a certain Hz frequency

Parameters

  • rate   type: double    not required   default: 1.0

    Do not pass data more quickly than this many hz

Inputs

  • in   type: ecto::tendril::none   

    input

Outputs

  • out   type: ecto::tendril::none   

    input

FileI

Brief doc

Reads doubles from a file like object

Parameters

  • file   type: boost::shared_ptr<std::istream>    not required   no default value

    A filelike object

Outputs

  • output   type: double   

    A double output.

LatticeSleep

Brief doc

Node with N inputs and N outputs, sleeps for a random period on each process()

Parameters

  • n   type: unsigned int    not required   default: 1

    number of ins and outs

Inputs

  • in0   type: ecto::tendril::none   

    input

Outputs

  • out0   type: ecto::tendril::none   

    output

FileO

Brief doc

Writes doubles to a file like object

Parameters

  • file   type: boost::shared_ptr<std::ostream>    not required   no default value

    A filelike object

Inputs

  • input   type: 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   type: std::string    not required   default: double

    The type string for what i’m to print... int, double, bool, string.

Inputs

  • in   type: double   

    what to print

Metrics

Brief doc

Calcluate bandwidth and latency based on timestamps received from an upstream ping.

Parameters

  • queue_size   type: unsigned int    not required   default: 10

    size of window to collect statistics over

Inputs

  • in   type: boost::posix_time::ptime   

    input

Outputs

  • hz   type: double   

  • latency_seconds   type: double   

Emit_Struct

Brief doc

Emit_Struct

Outputs

  • output   type: ecto_test::Struct   

    output

Emit_bool

Brief doc

Emit_bool

Outputs

  • output   type: bool   

    output

Multiply

Brief doc

Multiply an input by a constant

Parameters

  • factor   type: double    not required   default: 3.14

    A factor to multiply by.

Inputs

  • in   type: double   

    multly in by factor

Outputs

  • out   type: double   

    the result of in * factor

ParameterWatcher

Brief doc

Uses parameter change callbacks.

Parameters

  • value   type: double    required   default: 1.0

    I use this value

Inputs

  • input   type: double   

    input

Outputs

  • output   type: double   

    output

  • value   type: double   

    the parameter.

Uniform01

Brief doc

Generate random doubles uniformly distributed on [0, 1)

Parameters

  • ncalls   type: unsigned int    not required   default: 1

    Call this many times, return only the last. Used to generate CPU load in testing.

  • seed   type: unsigned int    not required   no default value

    Seed. By default the RNG is seeded from the system time.

Outputs

  • out   type: double   

    output

Gather

Brief doc

Gather ints

Parameters

  • n   type: int    not required   default: 2

    N to gather

Inputs

  • in_0000   type: int   

    An intinput.

  • in_0001   type: int   

    An intinput.

Outputs

  • out   type: int   

    The sum of all inputs.

QuitAfter

Brief doc

Quits the graph after so many process calls

Parameters

  • N   type: unsigned int    not required   no default value

    Quit after this many calls to process()

Inputs

  • in   type: double   

    An inbox

Outputs

  • out   type: double   

    outbox

Scatter

Brief doc

Scatter a value...

Parameters

  • n   type: int    not required   default: 2

    Number to scatter...

  • x   type: int    not required   default: 13

    The value to scatter...

Outputs

  • out_0000   type: int   

    The 0th scatter

  • out_0001   type: int   

    The 1th scatter

StartStopCounter

Brief doc

Count numbers of starts, stops, processes, etc.

Inputs

  • in   type: ecto::tendril::none   

    An inbox

Outputs

  • nconfigure   type: unsigned int   

  • nprocess   type: unsigned int   

  • nstart   type: unsigned int   

  • nstop   type: unsigned int   

  • out   type: ecto::tendril::none   

    An inbox

Quitter

Brief doc

Will quit the graph on some certain input

Parameters

  • str   type: std::string    not required   default: EXIT

    The default string to print

Inputs

  • str   type: std::string   

    The input string to listen to.

Gather_double

Brief doc

Gather doubles

Parameters

  • n   type: int    not required   default: 2

    N to gather

Inputs

  • in_0000   type: double   

    An doubleinput.

  • in_0001   type: double   

    An doubleinput.

Outputs

  • out   type: double   

    The sum of all inputs.

Accept_float

Brief doc

Accept_float

Inputs

  • input   type: float   

    input

Generate

Brief doc

Generate doubles

Parameters

  • start   type: double    not required   default: 0.0

    My starting value.

  • step   type: double    not required   default: 2.0

    The step with which i generate integers.

  • stop   type: double    not required   default: 0.0

    Stop if the generated value exceeds this upper bound (0 implies no upper bound)

Outputs

  • out   type: double   

    The starting value + (step * iterations).

DontCallMeFromTwoThreads

Brief doc

Throws if process called concurrently from two threads.

Inputs

  • in   type: double   

Outputs

  • out   type: double   

Emit_int

Brief doc

Emit_int

Outputs

  • output   type: int   

    output

Accept_int

Brief doc

Accept_int

Inputs

  • input   type: 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   type: double   

Outputs

  • out   type: double   

Accept_none

Brief doc

Accept_none

Inputs

  • input   type: 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   type: unsigned int    not required   no default value

    Return ecto::DO_OVER from process() this many times

Inputs

  • in   type: double   

    An inbox

Outputs

  • current   type: unsigned int   

  • out   type: double   

    outbox

Accept_bool

Brief doc

Accept_bool

Inputs

  • input   type: bool   

    input

Accept_string

Brief doc

Accept_string

Inputs

  • input   type: std::string   

    input

SharedPass

Brief doc

Shared pointer passthru

Parameters

  • x   type: int    not required   default: -1

    Default value

Inputs

  • input   type: boost::shared_ptr<int>   

    a pass through

Outputs

  • output   type: boost::shared_ptr<int>   

    a pass through

  • value   type: int   

    value

BpObjectToCellPtr

Brief doc

Takes a cell ptr as a bp object.

Inputs

  • cell   type: boost::python::api::object   

    a cell ptr

ThrowAfter

Brief doc

Throw after so many process calls

Parameters

  • N   type: unsigned int    not required   no default value

    Throw in the N-th call to process()

Inputs

  • in   type: double   

    An inbox

Outputs

  • out   type: double   

    outbox

ExceptInConstructor

Brief doc

A bad cell

PassthroughAny

Brief doc

Constant node always outputs same value.

Inputs

  • in   type: ecto::tendril::none   

    Any type

Outputs

  • out   type: ecto::tendril::none   

    Any type

Accumulator

Brief doc

Add inputs (potentially from different threads) to an incrementally accumulating sum.

Inputs

  • left   type: double   

    Left hand operand.

  • right   type: double   

    Right hand operand.

Outputs

  • out   type: double   

    The current accumulation.

RequiredInput

Brief doc

Required input.

Inputs

  • in   type: double   

    an input

Outputs

  • out   type: double   

    The input + x

Accept_Struct

Brief doc

Accept_Struct

Inputs

  • input   type: 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   type: double    required   no default value

    A required parameter.

Inputs

  • in   type: double   

    an input

Outputs

  • out   type: double   

    The input + x

Sleep

Brief doc

Sleep for a bit while in process

Parameters

  • seconds   type: double    not required   default: 1.0

    sleep this many seconds

Inputs

  • in   type: boost::posix_time::ptime   

    input

Outputs

  • out   type: boost::posix_time::ptime   

    output

Increment

Brief doc

Increment input by some amount

Parameters

  • amount   type: double    not required   default: 1.0

    Amount to increment by.

  • delay   type: unsigned int    not required   default: 0

    How long it takes to increment in milliseconds

Inputs

  • in   type: double   

    input

Outputs

  • out   type: double   

    output

Emit_string

Brief doc

Emit_string

Outputs

  • output   type: std::string   

    output