Application tasks and resources are modeled through Widgets objects, all grouped in a Tcg object. All widget objects inherit from the Widget class:
Base class defining an application widget.
Widgets are elements of a Tcg.
Note
Widget inherits dsx.ware.WNode, see dsx.ware.
Creates an instance of this kind of widget.
Should be overridden but must be called in overridden __init__.
Informs the widget it is used as resource from a dsx.application.widgets.Task. This permits to build an usage graph.
A Synchronization barrier resource to use with BarrierPort.
Used to build list of tasks to wait for
A MWMR channel resource to use with MwmrInput or MwmrOutput.
A Shared-memory buffer resource to use with MemspacePort.
Task is an instance of a TaskModel. Here we connect our allocated resources to the ones needed by the Task.
Creates a new Task. All ports defined by the model must be satisfied. If not, a TaskError is raised.
Parameters: |
|
---|---|
Raises : | TaskError if there is a mapping error |
A Task creation error.
A Task and Communication Graph.
Note
Tcg inherits dsx.ware.Ware, see dsx.ware.
Create a Tcg. Only pass in tasks, associated resources will be retrieved through their connections.
Parameters: | tasks (variadic of Task objects) – All the Tasks in the Tcg. |
---|
Tcg inherits dsx.ware.Ware.