ii13transitions.htm

来自「matlab的petri网工具包」· HTM 代码 · 共 103 行

HTM
103
字号
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>II.1.3. Transitions</title>
<link rel="stylesheet" href="C1H_HTML.css" type="text/css">
<style type="text/css">
 p { margin-top: 0; margin-bottom: 0; }
</style>
<script language="JavaScript" src="DocToHelp.js">
</script>
</head>
<body
 style="
        background-image: url(none);
        background-repeat: no-repeat;"
 onload="d2hload()"
 onmousedown="d2hpopup()"
>
<div id="ienav">
<ilayer id="nsnav">
<p align="center">

<a href="PNToolbox-toc.htm" target="left">Contents</a> &nbsp;


<a href="PNToolbox-index.htm" target="left">Index</a> &nbsp;



<a href="ii12places.htm">Previous</a> &nbsp;
<a href="ii14arcs.htm">Next</a>


</p>
<br>
<hr noshade size="1">
</ilayer>
</div>
<p class=heading-2>II.1.3. Transitions</p>
<p class=heading-2-p>&nbsp;</p>
<p class=normal style="text-align: center;">&nbsp;</p>
<p align="justify" class=figura>A transition is graphically represented in the 
  <b><i><a href="i4drawingarea.htm">Drawing Area</a></i></b> by a square. To draw 
  a transition in the <b><i><a href="i4drawingarea.htm">Drawing Area</a></i></b>, 
  the user must press the <b><i><a href="i5drawingpanel.htm">Add Transition</a> 
  </i></b>button from the <b><i><a href="i5drawingpanel.htm">Drawing Panel</a></i></b> 
  or select the <b><i><a href="i22modelingmenu.htm#AddTransition">Add Transition</a> 
  </i></b>command from the <b><i><a href="i22modelingmenu.htm">Modeling</a> </i></b>menu. 
  Then, the user must click only once into the desired grid cell of the <b><i><a href="i4drawingarea.htm">Drawing 
  Area</a></i></b>. A second click in the same grid cell has no effect.</p>
<p align="justify" class=figura-p>&nbsp;</p>
<p align="justify" class=figura> Once the square corresponding to a transition 
  is drawn, a label is automatically attached to it. The default position of the 
  label is below the square.</p>
<p class=figura>&nbsp;</p>
<p align="center" class=figura-p><img ID="FigII4" src="fig.II.4.JPG"  border=2></p>
<p align="center" class=figura>Fig. II.4. <i>The uicontext menu of a transition.</i></p>
<p align="center" class=figura-p>&nbsp;</p>
<p align="justify" class=figura id="move"> The same as for a place, after drawing a transition, 
  there are two ways to change its position in the <b><i><a href="i4drawingarea.htm">Drawing 
  Area</a></i></b> while in <b><i><a href="petrinettoolboxatafirstglance.htm#Fig1">Draw 
  Mode</a> </i></b>and no button from the <b><i><a href="i5drawingpanel.htm">Drawing 
  Panel</a></i></b> is pressed. The first way is to left-click the desired transition 
  and then drag it in the new position. The second way is to right-click the transition; 
  as a result, a MATLAB uicontext menu (<a href="#FigII4">fig. II.4</a>) appears 
  and the command <em><strong>Move Transition</strong></em> becomes available. 
  In both cases, the label is moved together with the transition.</p>
<p align="justify" class=figura>&nbsp;</p>
<p align="justify" class=figura>For a selected transition, the uicontext menu 
  also allows: (<em>i</em>) controlling the label&#8217;s visibility on the screen 
  (<b><i>View Label</i></b> command), (<em>ii</em>) changing the position of the 
  label (<b><i>Move Label</i></b> command), (<em>iii</em>) deleting the transition 
  (<b><i>Delete</i></b> command) and (<em>iv</em>) opening the <b><i>Edit Transition</i></b> 
  dialogue box (<a href="#FigII5">fig. II.5</a>) that lets the user modify the 
  properties of the transition as a MATLAB object (<b><i>Properties</i></b> command).</p>
<p class=figura-p>&nbsp;</p>
<p align="center" class=figura><img ID="FigII5" src="fig.II.5.JPG" alt="Fig. II.5. The Edit Transition dialogue box for modifying the properties of a transition"></p>
<p align="center" class=figura>Fig. II.5. <i>The <b>Edit Transition</b> dialogue box for 
  modifying the properties of a transition</i>.</p>
<p align="center" class=figura>&nbsp;</p>
<p align="justify" class=figura>The <b><i>Edit Transition</i></b> dialogue box 
  can be also opened by one of the procedures (ET1) or (ET2) described below, 
  followed by a click on the desired transition. (ET1) consists in selecting the 
  <b><i><a href="i22modelingmenu.htm#EditObjects">Edit Objects</a></i></b> command 
  from the <b><i><a href="i22modelingmenu.htm">Modeling</a></i></b> menu; (ET2) 
  consists in pressing the <b><i><a href="i5drawingpanel.htm">Edit Objects</a></i></b> 
  button from the <b><i><a href="i5drawingpanel.htm">Drawing Panel</a></i></b>.</p>
<p align="justify" class=figura-p>&nbsp;</p>
<p align="justify" class=figura> Each transition is uniquely identified with an 
  id that is automatically assigned by the <b><i>PN Toolbox</i></b> and cannot 
  be changed by the user. This id appears in the title bar of the <b><i>Edit Transition</i></b> 
  dialogue box.</p>
<p align="justify" class=figura-p>&nbsp;</p>
<p align="justify" class=figura id="label"> The option <b><i>Label </i></b>displays the string 
  that is used as the label of the transition. By default, this string coincides 
  with the id of the transition. The user can modify this string (without affecting 
  the id) if necessary.</p>
<p align="justify" class=figura-p>&nbsp;</p>
<p align="justify" class=figura id="message"> The <b><i>Message </i></b>text-box contains the 
  string that is displayed in the <b><i><a href="i8statuspanel.htm#message">Message Box</a></i></b> 
  during the simulation of the model when firing that transition if option <b><i>Displayed</i></b> 
  is checked for <b><i>Transition-Firing Message</i></b> in the <b><i><a href="i25simulationmenu.htm#Pref">Preferences</a></i></b> 
  dialogue box. By default, this string is 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?