Task Graph Module

Copyright (C) 2007-2017 Jonas Diemer, Philip Axer
TU Braunschweig, Germany
All rights reserved.
See LICENSE file for copyright and license details.
Authors:
  • Jonas Diemer
  • Philip Axer

Description

This module contains methods to plot task/architecture graphs of your system

class pycpa.graph.dotgraph(**kwargs)[source]

Minimalistic implementation of the pygraphviz API. With this, you can write graphs to a file.

pycpa.graph.graph_system(s, filename=None, layout='dot', empty_resources=False, short_tasks=False, exec_times=False, sched_param=False, rankdir='LR', show=False, dotout=None, use_pygraphviz=False, chains=[])[source]

Return a graph of the system

Parameters:
  • s (model.System) – the system
  • filename – if not None, the graph is plotted to this file
  • layout – graphviz layout algorithm (default l’dot’ works best with hierarchical graphs)
  • empty_resources – Plot resources that have no tasks assigned
  • short_tasks – Label tasks using “T_nn” instead of their potentially long name
  • exec_times – Show execution times for each tasks
  • sched_param – Show scheduling parameter for each task
  • rankdir – Layout option for graphviz
  • show (boolean) – Show plot
  • dotout – If set, write a dot file to this filename
Return type:

None