lynx.blocks.InputMarker

class lynx.blocks.InputMarker[source]

Bases: Block

Input marker - signals flow OUT of this block into the system.

Marks the input boundary of a control system diagram.

label

Optional signal name (e.g., “u”, “r”, “disturbance”)

Methods

__init__(id[, label, position, index, ...])

Initialize Input marker.

add_parameter(name, value[, expression])

Add a parameter to the block.

add_port(port_id, port_type[, label])

Add a port to the block.

get_parameter(name)

Get parameter value by name.

get_ports()

Get all ports as dictionaries.

is_input_marker()

Check if this is an input marker block.

is_output_marker()

Check if this is an output marker block.

set_parameter(param_name, value)

Update block parameter and sync to parent diagram.

to_dict()

Serialize block to dictionary for JSON export.

__init__(id: str, label: str | None = None, position: Dict[str, float] | None = None, index: int | None = None, custom_latex: str | None = None) None[source]

Initialize Input marker.

Parameters:
  • id – Unique block identifier

  • label – Signal name (block label, e.g., “u”, “r”, “disturbance”)

  • position – Optional canvas position

  • index – Optional visual display index (auto-assigned if None)

  • custom_latex – Optional custom LaTeX override for block rendering