finesse.element.ModelElement

Overview

class finesse.element.ModelElement(name, *args, **kwargs)[source]

Bases: object

Base for any object which can be an element of a Model.

When added to a model it will attempt to call the method _on_add so that the element can do some initialisation if required.

Parameters
namestr

Name of newly created model element.

Properties

ModelElement.default_parameter_name

The default parameter to assume when the component is directly referenced.

ModelElement.has_model

Returns true if this element has been associated with a Model.

ModelElement.name

Name of the element.

ModelElement.parameters

Returns a list of the parameters available for this element.

ModelElement.ref

Reference to the default model parameter, if set.

Methods

ModelElement.__init__(name)

ModelElement.info([eval_refs])

Element information.

ModelElement.info_parameter_table()

Info parameter table.

ModelElement.parameter_table([eval_refs, ...])

Model parameter table.