Class Feature

class sila2.framework.Feature(feature_definition: str)

Represents a SiLA feature

Parameters:

feature_definition – Feature definition (XML) as string, or path to a feature definition file

fully_qualified_identifier: FullyQualifiedFeatureIdentifier

Fully qualified feature identifier

children_by_fully_qualified_identifier: typing.Dict[FullyQualifiedIdentifier, HasFullyQualifiedIdentifier]

All child elements, accessible by their fully qualified identifier

__getitem__(identifier: str) Property | Command | Metadata

Get a property, command or metadata child element by its identifier

Parameters:

identifier – Property, command, or metadata identifier

Returns:

child_element – Child element with the given identifier

Raises:

KeyError – If no such child element exists