vcSignal

vcSignal is the basic implementation for signal type behaviors which can simulate wiring, send a value to other signals and trigger events.

Inherits: vcBehaviour

Hierarchy

vcSignal

vcBoolSignal

vcComponentSignal

vcIntegerSignal

vcMatrixSignal

vcRealSignal

vcStringSignal

Common Properties

The following properties are common in all signal type behaviors.

Name Type Access Description
AutomaticReset Boolean RW Turns on/off the reset of signal to initial value when simulation is reset.
Connections List of vcBehaviour RW Defines a list of behaviors connected to signal.

Methods

Name Return Type Parameters Description
connect Boolean vcSignal signal, [Boolean connect_in_gui] Connects signals. The default value of the connect_in_gui is True, which means the created connection will be visible in GUI.

If a False value is given, the created connection won't be visible in GUI. Because of this, use the False value only when necessary!

disconnect Boolean vcSignal signal, [Boolean disconnect_in_gui] Disconnects signals. The default value of the disconnect_in_gui is True, which means the signal is disconnected also in GUI.

If the signals were connected using the connect method with a False argument in the connect_in_gui, they should be disconnected using a False argument in the disconnect_in_gui

Events

Name Parameters Description
OnValueChange vcSignal signal Triggered when the value of signal is changed, thereby signaling all Connections of new value.