ClpRelation

class glotaran.model.clp_relation.ClpRelation(*, interval: tuple[float, float] | list[tuple[float, float]] | None = None, source: str, target: str, parameter: Parameter | str)[source]

Bases: IntervalItem

Applies a relation between two clps.

The relation is applied as target = parameter * source.

Method generated by attrs for class ClpRelation.

Attributes Summary

source

target

parameter

interval

Methods Summary

applies

Check if the index is in the intervals.

has_interval

Check if intervals are defined.

Methods Documentation

applies(index: float | None) bool

Check if the index is in the intervals.

Parameters:

index (float) – The index.

Return type:

bool

has_interval() bool

Check if intervals are defined.

Return type:

bool

interval: tuple[float, float] | list[tuple[float, float]] | None
parameter: Parameter | str
source: str
target: str