DOWNLOAD

CHANGES

SCREENSHOTS

DOCUMENTATION



module whatos.tk

This Python module extends whatos.core and whatos.embedded with a set of rudimentary graphical viewers based on Tkinter.

Contents

All

object tk_monitor_viewer (whatos.embedded.monitor_viewer)

A graphical whatos.embedded.monitor_viewer which displays cpu usage using a scrolling graph and log messages in a text-box

object tk_simulation_viewer (whatos.core.simulation_printer)

A graphical whatos.core.simulation_viewer which displays all signal connections between tasks using a directed graph generated using Graphviz. Signal emissions are animated.

  • Zoom in: SHIFT + left mouse click
  • Zoom out: CTRL + left mouse click
  • Pan: hold middle button pressed and move mouse

Supports 3 modes of operation:

  • fullspeed - events are not processed
  • animate - events are processed at equal time intervals (specified by delay attribute).
  • wait - wait until user presses left mouse button before going to the next event; clear the signal queue with the right mouse button

attribute delay = 0.5

Time in seconds to delay between each event, only applicable when mode = 'animate'.

attribute mode = 'wait'

One of 'fullspeed', 'animate', 'wait'

attribute system = None

The whatos.core.system instance which is being simulated.

object tk_transitions_viewer (whatos.core.transitions_viewer)

A graphical whatos.core.transitions_viewer which displays all state transitions using a directed graph generated using Graphviz. Transitions are animated.

  • Zoom in: SHIFT + left mouse click
  • Zoom out: CTRL + left mouse click
  • Pan: hold middle button pressed and move mouse

Supports 3 modes of operation:

  • fullspeed - events are not processed
  • animate - events are processed at equal time intervals (specified by delay attribute).
  • wait - wait until user presses left mouse button before going to the next event; clear the signal queue with the right mouse button

attribute delay = 0.5

Time in seconds to delay between each event, only applicable when mode = 'animate'.

attribute mode = 'wait'

One of 'fullspeed', 'animate', 'wait'

attribute task = None

The whatos.core.cautotask or whatos.core.pyautotask whose state machine is being viewed.
© Mircea Hossu () WhatOS 2.0.3  (2006 Feb 26)