剑花 烟雨

   江南  好 风景旧曾谙 日出江花红胜火 春来江水绿如蓝 能不忆东北

理想中的建筑师应该是一个诗人、数学家、精通历史、精通心理学、熟悉音乐、了解医学、还要具备天文学和计算的基本知识。
                                                                                                                         ------------------公元前25年,罗马建筑学家Vitruvius
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Getting started with CPN Tools(recite)

Posted on 2008-03-29 11:32  落花人独立  阅读(1714)  评论(2编辑  收藏  举报
How to get started using CPN Tools

This page explains some of the basic steps to using CPN Tools. If you've never used CPN Tools before, this is a good place to begin. On the main help page, you can find more detailed information about the various aspects of the tool.

If you have problems starting up the tool or installing it, read the hardware requirements page, or report your problems to our technical support.

The Interface

When you open CPN Tools, the first thing you see is a window, containing an index on the left side and a workspace on the right.

CPN Tools window

If you do not see this, but in stead a gray or green windows or nothing at all, the problem may be your graphics adaptor. Please check the FAQ for further details.

Each of the cursors is controlled with its own separate input device, such as a mouse, a pen, or a trackball. Multiple cursors can be controlled by one or more users at the same time. In the following, we will assume that you use a mouse in your right hand as your primary input device, and write "the hand", "the mouse", "the cursor", etc. for this. The interactions are, however, just the same for the left hand and/or another two-button input device.

To get started working on a CP-net, you can either load an existing net or create a new one.

Loading and Creating Nets

To load an existing net, move the cursor to the workspace or to an empty part of the index. Press with the right button of the mouse and keep the button pressed. A circular menu appears - this is the workspace marking menu. (Read more about these menus on the Marking menus page).

The workspace marking menu

Keep the button pressed and move the cursor to the Load Net entry in the menu. The entries will highlight when the cursor moves over them - release the button when the Load Net entry is highlighted.

Loading a net through the marking menu

A file dialog appears from which you can select the net you wish to load. When you have selected a net and clicked OK, the dialog disappears, and the net appears in the index at the left side in the CPN Tools window. After a net has been loaded, the name of the net appears as an entry in the index.

Alternatively, you can create a new net by bringing up the workspace marking menu and selecting the New Net entry.

Creating a net through the marking menu

Remember to keep the right button pressed as you move the cursor around in the marking menus. If you release the button when no entry is highlighted, the menu disappears and no command is invoked. Press down the right button to bring the menu up again.

The Index

The index is located in the left side of the CPN Tools window:

The index

The index contains:

  • Tool box: A list of all the tools available in CPN Tools. See the Tool box entry below for more information.
  • Help: Links to Help, Homepage, Report Bug and other webpages. See the Help entry below for more information.
  • Options: Various options for, e.g. simulation
  • The nets that are currently open in the tool
A blue triangle to the left of an entry in the index indicates that the entry can be opened to reveal more details about the entry. Click the triangle to open and close an index entry.

Overview of a Net

The index contains an entry for each net that is opened in the tool. If the net was loaded from a file, then the net entry in the index is labelled with the name of the net. In the figure below, the net named "hier.cpn" has been loaded. If a new net was created, the net entry is labelled "New net.cpn".

To start working on a page in the net, the net entry in the index must be opened. Click on the triangle next to the name to open the entry, if it is not already opened.

A net in the index

A net entry contains:

  • History: the list of commands that have been performed on the net
  • Step: the number of steps that have executed in a simulation
  • Time: the current model time
  • Declarations: the declarations of colour sets, functions, constant values, etc. All declarations are written in the CPN ML language.
  • Page entries for pages in the net
Read more about how to add/edit declarations and about simulating nets.

All pages in a net are accessible through the index. The hierarchical structure of a net is reflected in the index. The entry for a subpage appears under the entry for its superpage. Subpage entries are visible in the index when the corresponding superpage entry has been opened.




count hit
欢迎您到紫阁阳光坐客