AnnotatedLLRS#

class ansys.scade.pyalmgw.llrs.AnnotatedLLRS(llr_export: LLRExport, kind, root, note_types)#

Bases: StdLLRS

Base implementation class for models that support annotations.

Overview#

get_note_value

Return the value of a note attribute.

gather_llr_fields

Cache the annotation fields tagged as LLR_PROP.

get_item_attributes

Implement get_item_attributes.

Import detail#

from ansys.scade.pyalmgw.llrs import AnnotatedLLRS

Attribute detail#

AnnotatedLLRS.llr_fields#
AnnotatedLLRS.note_types#

Method detail#

AnnotatedLLRS.gather_llr_fields()#

Cache the annotation fields tagged as LLR_PROP.

AnnotatedLLRS.get_item_attributes(item: Any) list#

Implement get_item_attributes.

abstract AnnotatedLLRS.get_note_value(note: scade.model.suite.annotation.AnnNote, attribute: str) str#

Return the value of a note attribute.

Parameters:
noteann.AnnNote

Input note.

attributestr

Name of the attribute.

Returns:
str

Value of the attribute.