Chapter 8. The Tkenv Graphical Runtime Environment

Table of Contents

Features
Overview of the User Interface
Using Tkenv
Starting Tkenv
Setting Up and Running the Simulation
Inspecting Simulation Objects
Using Tkenv with a Debugger
Parts of the Tkenv UI
The Status Bar
The Timeline
The Object Navigator
The Object Inspector
The Network Display
The Log Viewer
Inspecting Objects
Object Inspectors
Browsing the Registered Components
Querying Objects
The Preferences Dialog
General
Configuring the Layouting Algorithm
Configuring Animation
Timeline and Animation Filtering
Configuring Fonts
The .tkenvrc File
Tkenv and C⁠+⁠+
Inspectors
During Simulation
Reference
Command-Line Options
Environment Variables
Configuration Options

Features

Tkenv is a graphical runtime interface for simulations. Tkenv supports interactive simulation execution, animation, inspection, tracing and debugging. In addition to model development and verification, Tkenv is also useful for presentation and educational purposes, since it allows the user to get a detailed picture of the state and history of the simulation at any point of its execution.

When used together with a C⁠+⁠+ source-level debugger, Tkenv can significantly speed up model development.

Its most important features are:

  • network visualization
  • message flow animation
  • various run modes: event-by-event, normal, fast, express
  • run until (event or simulation time)
  • simulation can be restarted
  • log of message flow
  • display of textual module logs
  • inspectors for viewing contents of objects and variables in the model
  • visualization of statistics (histograms, etc.) during simulation execution
  • eventlog recording for later analysis
  • snapshots (detailed report about the model: objects, variables, etc.)