avl._core.sequence_item module

class avl._core.sequence_item.SequenceItem(*args: Any, **kwargs: Any)[source]
__init__(name: str, parent: Sequencer | Sequence | Component | None) None[source]

Initializes the SequenceItem with a name and an optional parent component.

Parameters:
  • name (str) – Name of the sequence item.

  • parent (Component) – Parent component (optional).

set_sequencer(sequencer: Sequencer) None[source]

Sets the sequencer for the item.

Parameters:

sequencer (Sequencer) – The sequencer to be set.

get_sequencer() Sequencer | None[source]

Gets the sequencer of the item.

Returns:

The sequencer of the item.

Return type:

Sequencer

set_parent_sequence(sequence: Sequence) None[source]

Sets the parent sequence for the item.

Parameters:

sequence (Sequence) – The parent sequence to be set.

get_parent_sequence() Sequence | None[source]

Gets the parent sequence of the item.

Returns:

The parent sequence of the item.

Return type:

Sequence

get_root_sequece() Sequence | None[source]

Gets the root sequence of the item.

Returns:

The root sequence of the item.

Return type:

Sequence