Ob#

class discopy.feedback.Ob(name, time_step=0, is_constant=True)[source]#

Bases: Ob

A feedback object is an object with a time_step and an optional argument is_constant for whether the object is interpreted as a constant stream.

Parameters:
  • name (str) –

  • time_step (int) –

  • is_constant (bool) –

delay(n_steps=1)[source]#

The delay of a feedback object.

property head: HeadOb | None#

Syntactic sugar for HeadOb or None if delayed.

property tail: Ob | None#

Syntactic sugar for TailOb or self if is_constant.

reset()[source]#

Reset an object to time step zero, used in Functor.

Return type:

Ob

property d#

delay.

Type:

Syntactic sugar for meth