Bases: BlockBase
A widget is a component of a panel that is used to control values in the simulation and display values from it.
A widget has a given number of Parameters
.
A widget also has input and output Signals
. However, contrary to Blocks
, widgets have no Ports
because they cannot link to one another within the same panel like regular blocks in a model.
Delete the current resource, which is done by suppressing its ID.
Convert this resource to a serialized JSON representation.
The angle of the block.
The value is between 0 and 360 degrees.
The comment state of the block.
The default value is NONE.
If COMMENT_OUT, the block is not considered by the simulation.
If COMMENT_THROUGH, the block is considered as a link between its input ports and output ports.
The datapoints of the block, in the form of a mapping name = datapoint. Datapoint names are unique within a given block.
Datapoints are a concatenation of parameters and signals, and could include other elements in the future.
This property is read-only, it cannot be modified. However, each datapoint might have alterable properties.
The description of the block.
This property is read-only, it cannot be modified.
Dimensions (width and height) of the block.
The format of the location is x y where x and y are integer values (no decimal).
The flip state of the block.
The default value is NONE.
If HORIZONTAL, the block is flipped horizontally (the flip axis is vertical).
If VERTICAL, the block is flipped vertically (the flip axis is horizontal).
If BOTH, both axes are used.
The ID of the resource.
This property is read-only, it cannot be modified.
Indicates if this block’s label is visible (True) or not (False).
Indicates if this block can be moved in the diagram and if it can be resized. (True) or not (False).
The location of the block within a diagram.
The format of the location is (x,y) where x and y are integer values (no decimal).
The parameters of the widget, in the form of a mapping name = parameter. Parameter names are unique within a given widget.
This property is read-only, it cannot be modified. However, each parameter might have alterable properties.
The reference ID of the block.
This ID is only useful to lookup the block’s library data.
This property is read-only, it cannot be modified.
The signals of the widget, in the form of a mapping name = signal. Signal names are unique within a given widget.
This property is read-only, it cannot be modified. However, each signal might have alterable properties.
The type of the block.
This property is read-only, it cannot be modified.