User's Guide to the Ptcl Editor

This class provides a text editor specialized for editing Ptcl source. Ptcl is the Ptolemy extension to Tcl. Ptolemy is a software environment that provides simulation an code generation capabilities. http://ptolemy.eecs.berkeley.edu describes the Ptolemy project in detail. See the pitcl page for a description of pitcl, a different interface to the Ptolemy kernel.

The Ptcl Editor is automatically invoked whenever you open any file with an .ptcl extension or .pt extension.

If you are running Tycho outside of Ptolemy, and Octtools is not present in the binary and a directory is opened that contains a schematic/contents; subfile, and the directory is not named *.pal, then this editor will attempt to run oct2ptcl to convert the Octtools facet to ptcl and then display the results. If you are running Tycho with a binary that has Octtools, then Vem will open up the Octtools facet in the usual way.

The EditPtcl class is derived from the EditItcl class, and therefore inherits all of its features. It colors certain Ptcl constructs, such as comments and universe definitions.

To evaluate a ptcl file, you must have the ptcl extensions built into the binary that tycho is running. To start tycho with the ptcl extension, run tycho -pigi. See the Tycho startup documentation for more information.

The Ptcl editor has a Special menubutton, which has the following choices:

  • Retarget - Brings up the Retargetting editor, which can be used to retarget a Ptolemy universe between domains. The Retarget menu choice is disable if the Tycho binary does not have the Ptolemy kernel built in.
  • List Domains - List the domains used by the ptcl file.
  • List Stars - List the names of the stars used by the ptcl file.
  • Universe Name - Show the name of the universe defined by this file.
  • Tycho Home Page


    Copyright © 1996-1998, The Regents of the University of California. All rights reserved.
    Last updated: 05/07/98, comments to: cxh@eecs.berkeley.edu