home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / science / atk1ibm.zoo / tutorial.txt < prev   
Encoding:
Text File  |  1991-05-12  |  63.4 KB  |  1,794 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                          -----------------------------------
  17.                          / A N A L Y S T   T O O L   K I T /
  18.                          -----------------------------------
  19.                                          ||
  20.                                          ||
  21.                                          \/
  22.               ---------------------------------------------------------
  23.               / Copyright (C) Chinook Software Group 1986, 1988, 1991 /
  24.               /                 all rights reserved                   /
  25.               ---------------------------------------------------------
  26.                                          ||
  27.                                          ||
  28.                                          ||
  29.                                          \/
  30.                              ==========================
  31.                              / Chinook Software Group /
  32.                              / P.O. Box 24536         /
  33.                              / Denver, CO.      80224 /
  34.                              ==========================
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.               ========================================================
  50.               / This tool suite  enables a user  to perform top-down /
  51.               / system  specification  using the Structured Analysis /
  52.               / Methodology  ( Data Flow Diagrams ).    Diagrams are /
  53.               / entered  and manipulated  graphically, but stored in /
  54.               / textual form for easy access by other tools. Support /
  55.               / is  provided  for  data  dictionary  generation  and /
  56.               / analysis, as well as for analysis of the DFDs.       /
  57.               ========================================================
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                              *** NOTICE: PLEASE READ ***
  64.  
  65.  
  66.           This document is the companion to the SHAREWARE CHINOOK Software
  67.           ATK product.
  68.  
  69.           This software has no artificial limitations on functionality or
  70.           periodic reminder screens of any kind.  The CHINOOK SOFTWARE
  71.           GROUP address and registration fee request appear at the startup
  72.           of certain tools only.
  73.  
  74.           This document and the attendant software is provided as-is and
  75.           without warranty as to correctness or suitability for any
  76.           specific application. The CHINOOK SOFTWARE GROUP disclaims any
  77.           responsibility for the use or misuse of this software by any
  78.           individual or entity, for any purpose whatever.
  79.  
  80.           This disk, with this document on it, may be copied and
  81.           distributed in its entirety, freely, but may not be modified or
  82.           sold.
  83.  
  84.           If you find ATK instructive and useful, registering your copy
  85.           with us for $35 will go a long way toward allowing its authors to
  86.           continue its development. In return, you will be placed on our
  87.           mailing list to receive information about future releases and
  88.           other products.  In addition, you will be given special
  89.           consideration with regard to future releases of ATK, and will be
  90.           sent additional documentation including detailed file formats,
  91.           evaluation rules, and reference pages for all functions.
  92.  
  93.           The asking price of $35 represents more than an order of
  94.           magnitude price break when compared with similar products
  95.           currently available.  Your support is both needed and
  96.           appreciated.
  97.  
  98.           Please send your contribution to:
  99.                                  The Chinook Software Group
  100.                                  P.O. Box 24536
  101.                                  Denver, CO.  80224
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.                                      - ii -
  120.  
  121.  
  122.  
  123.  
  124.  
  125.                                   TABLE OF CONTENTS
  126.  
  127.           Introduction............................................1
  128.                This Document......................................1
  129.                Tool Synopsis......................................2
  130.           Installation............................................4
  131.                Hardware Requirements..............................4
  132.                Supplied Software..................................5
  133.                Procedures.........................................6
  134.                     Floppy System.................................6
  135.                     Hard Disk Systems.............................6
  136.           The Graphic Editor (GED)................................7
  137.                Command Overview...................................7
  138.                Controlling GED....................................8
  139.                Basic Operation....................................9
  140.                     The Context Diagram...........................9
  141.                     Prompts and messages.........................10
  142.                     Description of a process.....................10
  143.                     Redrawing a DFD..............................11
  144.                     Deleting a DFD...............................11
  145.                     Aborting a DFD...............................11
  146.                     Saving a DFD.................................11
  147.                     Naming a DFD.................................11
  148.                     The Cursor...................................11
  149.                     Creating Objects.............................12
  150.                     Moving Objects...............................13
  151.                     Erasing Objects..............................13
  152.                     Naming Objects...............................13
  153.                Customizing GED...................................13
  154.           The Data Dictionary....................................15
  155.                Dictionary Syntax.................................15
  156.           Data Dictionary Builder (DDBUILD)......................18
  157.                Command Overview..................................18
  158.           Data Dictionary Evaluator (DDEVAL).....................19
  159.                Command Overview..................................19
  160.           The Analysis Tool (ANAL)...............................20
  161.                Command Overview..................................20
  162.           Report Generator.......................................22
  163.                Command Overview..................................22
  164.           Miscellaneous Tools....................................24
  165.                Attach............................................24
  166.                GEDPS.............................................24
  167.                PS................................................24
  168.                KB................................................25
  169.           Index..................................................26
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.                                     - iii -
  182.  
  183.  
  184.                                                                Introduction
  185.  
  186.  
  187.  
  188.           Introduction
  189.  
  190.           The Structured Analysis methodology allows a user to perform a
  191.           top-down specification of a system from a data viewpoint.  The
  192.           methodology is not limited to software development, but functions
  193.           well at the requirements and system design levels also.  The
  194.           resulting set of diagrams and the data dictionary augments any
  195.           documentation effort, and provides a concise, clear picture which
  196.           may be dynamically maintained along with the system it describes.
  197.  
  198.           This Document
  199.  
  200.           This document is intended to acquaint those already knowledgeable
  201.           in the Structured Analysis methodology with the ATK tool package
  202.           and its use.
  203.  
  204.           For those unfamiliar with Structured Analysis techniques, Tom
  205.           DeMarco's Structured Analysis and System Specification is
  206.           strongly recommended.
  207.  
  208.           A rudimentary knowledge of IBM/PC operation is also assumed.
  209.  
  210.           This document provides basic functional information in a tutorial
  211.           format. Each tool in the set is described, and some examples are
  212.           provided to illustrate the most common usage. No attempt is made
  213.           to cover every option or variation possible. It is hoped that a
  214.           user will grasp the underlying principles of operation quickly,
  215.           and be able to produce useful work before fully understanding
  216.           every detail of every command.
  217.  
  218.           The document is not complete, but we believe it to contain as
  219.           much information as the average user will need.  If you believe
  220.           some information should be added to this tutorial to make the
  221.           toolset more useful, please let us know.
  222.  
  223.           Be sure to consult the README.TXT file to get any changes or
  224.           additions made late in the production cycle.
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.           Analyst Tool Kit Shareware - 1 -             Revision 041091
  244.  
  245.  
  246.                                                                Introduction
  247.  
  248.  
  249.  
  250.           Tool Synopsis
  251.  
  252.           The ATK is a collection of application software designed to
  253.           facilitate the development, analysis, and maintenance of a set of
  254.           DFDs (data flow diagrams) and their associated data dictionary:
  255.  
  256.             + A GRAPHIC EDITOR, called GED, which allows DFDs to be
  257.              interactively entered and manipulated.  Unlike a generic
  258.              graphics package, GED is specifically designed to work with
  259.              standard DFD symbology and conventions. GED produces an ASCII
  260.              format file as output, which can be read (and modified) by
  261.              text editors as well as the other tools in the package.
  262.  
  263.             + A DATA DICTIONARY builder, called DDBUILD, which can read
  264.              the output of the graphic editor and produce the skeleton
  265.              Data Dictionary.  The data dictionary is an ASCII formatted
  266.              file which can be read and modified by text editors as well
  267.              as the DFD EVALUATOR.
  268.  
  269.             + A DATA DICTIONARY EVALUATOR, called DDEVAL, which reads the
  270.              completed data dictionary, parses it for errors, and produces
  271.              an exception listing.
  272.  
  273.             + A DATA FLOW DIAGRAM EVALUATOR, called ANAL, which reads the
  274.              data flow diagram files and the data dictionary, and reports
  275.              on conformance to the Structured Analysis methodology
  276.              guidelines.
  277.  
  278.             + A REPORT GENERATOR, called RG, which formats the output of
  279.              the other tools.  It has knowledge files produced by ATK, but
  280.              may be used as general-purpose formatter.
  281.  
  282.             Other tools are also included:
  283.             + A PostScript GENERATOR, called GEDPS, which converts DFD
  284.              files into PostScript representations suitable for sending to
  285.              PostScript printers or layout tools.
  286.  
  287.             + A DFD REUSE HELPER, called ATTACH, which copies entire DFD
  288.              subtrees for reuse on other designs.
  289.  
  290.  
  291.           This version of ATK was originally intended for classroom use and
  292.           provides an environment in which to study the Structured Analysis
  293.           method. It was discovered, however, to be practical for a range
  294.           of small design efforts, and is being offered as SHAREWARE at a
  295.           price to suit a market neglected by comparable products.
  296.  
  297.           The toolkit features:
  298.             + 8 levels of decomposition below the context diagram.
  299.  
  300.             + Data dictionary evaluation limited only by available memory.
  301.  
  302.  
  303.  
  304.  
  305.           Analyst Tool Kit Shareware - 2 -             Revision 041091
  306.  
  307.  
  308.                                                                Introduction
  309.  
  310.  
  311.             + Flat ASCII data file formats easily accessible to other
  312.              tools.
  313.  
  314.             + PostScript output from DFDs, suitable for printing or
  315.              incorporation as EPS documents in publishing systems like
  316.              Ventura Publisher.
  317.  
  318.             + Full function on vanilla PC hardware configurations, with no
  319.              mouse or expensive graphics cards required.
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.           Analyst Tool Kit Shareware - 3 -             Revision 041091
  368.  
  369.  
  370.                                                                Installation
  371.  
  372.  
  373.  
  374.           Installation
  375.  
  376.  
  377.           Hardware Requirements
  378.  
  379.           The toolset primarily targets an IBM PC computer with:
  380.             + a minimum of 192K of main memory
  381.  
  382.             + a standard IBM color graphics adapter (CGA, EGA, VGA)*
  383.  
  384.             + a printer capable of doing graphic output (optional, if
  385.              hardcopy not necessary)**
  386.  
  387.             + two 360K floppy drives, or one floppy and a hard drive.
  388.  
  389.             + DOS version 2.0 or higher (DOS 3.0 or higher is helpful)
  390.  
  391.           The product will run on most all IBM PC compatibles with an
  392.           appropriate graphics card.
  393.  
  394.           The product will run on an IBM PC/AT with an appropriate graphics
  395.           card.
  396.  
  397.           The product will run on an IBM PS2 with an appropriate graphics
  398.           card.
  399.  
  400.           The product will generate conforming PostScript output for DFDs.
  401.  
  402.           The product does not require a mouse, but will support one if
  403.           present*** .
  404.  
  405.           The product can be evaluated with a single low-density floppy,
  406.           albeit with some annoyance.
  407.  
  408.  
  409.  
  410.  
  411.                               
  412.           * In particular, Hercules graphic cards have not been tested at
  413.           the present time (12/90), though they should work.  An
  414.           autodetection feature is used that requires register-level
  415.           compatibility for a card to be recognized.
  416.  
  417.           ** Graphic output can be supported with the standard PrtSc
  418.           function support (if provided), Epson 9-pin printers in any
  419.           supported graphics mode, or Postscript.  More integrated support
  420.           is on the way.
  421.  
  422.           *** As a note to mouse users, many older mouse drivers did not
  423.           understand and support EGA and VGA graphics modes.  If loading
  424.           your mouse driver and then running GED does not result in a
  425.           visible mouse cursor, you should contact your mouse vendor for an
  426.           updated driver.
  427.  
  428.  
  429.           Analyst Tool Kit Shareware - 4 -             Revision 041091
  430.  
  431.  
  432.                                                                Installation
  433.  
  434.  
  435.  
  436.           Supplied Software
  437.  
  438.           The product is shipped on a single floppy disk containing the
  439.           appropriate versions of the tool executables, a printable version
  440.           of this manual, and some example material.
  441.  
  442.           At least the following files will be present on your distribution
  443.           disk:
  444.             + README.TXT     A printable file containing errata,
  445.                   additions, or other noteworthy material.
  446.  
  447.             + GED.EXE        The Graphics Editor program.
  448.  
  449.             + DDBUILD.EXE   The Data Dictionary builder/updater program.
  450.  
  451.             + DDEVAL.EXE    The Data Dictionary evaluator program.
  452.  
  453.             + ANAL.EXE      The Data Flow Diagram Analyzer program.
  454.  
  455.             + CONFIG.ANA    A sample configuration file for the analysis
  456.                   tool.  This file is optional, and is consulted by ANAL
  457.                   if available.
  458.  
  459.             + CONFIG.GED    A sample configuration file for the graphics
  460.                   editor.  This file is optional, and is consulted by GED
  461.                   if available.
  462.  
  463.             + CONFIG.RG     A sample configuration file for the report
  464.                   generator.  This file is optional, and is consulted by
  465.                   RG if available.
  466.  
  467.             + RG.EXE        The page formatting utility.
  468.  
  469.             + CONFIG.RG     A sample configuration file for the report
  470.                   generator.  This file is optional, and is consulted by
  471.                   RG if available.
  472.  
  473.             + DOC <DIR>     A subdirectory containing this document in
  474.                   printable form.
  475.  
  476.             + SAMPLES <DIR> A subdirectory containing some pre-written
  477.                   DFDs for practice use, and an example of a data
  478.                   dictionary.
  479.  
  480.             + *.TXT         Any other required up-to-date information
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.           Analyst Tool Kit Shareware - 5 -             Revision 041091
  492.  
  493.  
  494.                                                                Installation
  495.  
  496.  
  497.  
  498.           Procedures
  499.  
  500.                      BEFORE YOU DO ANYTHING ELSE WITH THIS DISK,
  501.                                  MAKE A BACKUP COPY!
  502.  
  503.           Use the diskcopy command as described in your operating system
  504.           manual to make a copy of the disk.  Put the original disk in a
  505.           safe place and use the copy for the remainder of your work.
  506.  
  507.           Floppy System
  508.  
  509.           If you are using a dual floppy system the easiest way to use the
  510.           toolset is to put the tool executables in drive A: and a disk to
  511.           contain your work in drive B:.  The sample material from the
  512.           supplied disk may be copied to the B: drive for modification, if
  513.           desired.
  514.  
  515.           In addition, you should have a copy of COMMAND.COM somewhere on
  516.           the PATH, so that the DOS escape in GED, and the auto-execution
  517.           features of RG will work.
  518.  
  519.           You should make the B: drive the default drive, and the directory
  520.           holding your DFD files the current directory.  (The files
  521.           CONFIG.RG, CONFIG.ANA, and CONFIG.GED should also be here if you
  522.           intend to use them.)
  523.  
  524.           The A: drive should be included in your PATH, so the operating
  525.           system can find the tools.  PATH with no arguments will display
  526.           the current path setting.  The path is usually set by the
  527.           AUTOEXEC.BAT file when the machine is first booted.
  528.  
  529.           Hard Disk Systems
  530.  
  531.           Hard disk installations vary with individual user preference.
  532.           Keep the following points in mind for your hard disk
  533.           installation.
  534.  
  535.             + The tools are standard executables and use no overlays; the
  536.              tools may reside together or separately, and are subject to
  537.              the same rules which your operating system uses to locate any
  538.              type .EXE file (e.g., PATH).
  539.  
  540.             + The DFDs being worked on are, by default, in the current
  541.              directory. This implies that each set of DFDs (each project)
  542.              should reside in a separate directory.
  543.  
  544.             + The files CONFIG.GED, CONFIG.ANA, and CONFIG.RG must reside
  545.              either in the current directory, in the directory pointed to
  546.              by environment variable "ATK", or in the directory containing
  547.              the executable image (DOS 3.0 and above). Each set of DFDs
  548.              (each project), may have its own set of setup files.
  549.  
  550.  
  551.  
  552.  
  553.           Analyst Tool Kit Shareware - 6 -             Revision 041091
  554.  
  555.  
  556.                                                    The Graphic Editor (GED)
  557.  
  558.  
  559.  
  560.           The Graphic Editor (GED)
  561.  
  562.           The graphic editor, called GED, is the means by which graphic
  563.           representations of DFDs are entered, viewed, and manipulated. The
  564.           output of GED is a graphic rendition of the DFD on a CRT or
  565.           graphic printer, and an ASCII file containing a formatted
  566.           description of the DFD which the analysis tools can read. The DFD
  567.           file may be created or manipulated with any text editor which
  568.           doesn't put extraneous characters into the file. This would
  569.           normally only be done in environments which can't support GED.
  570.           (i.e. no graphics card)
  571.  
  572.           Command Overview
  573.  
  574.           The simplest invocation is to type GED at the system prompt.
  575.           This would cause GED to consult the file CONFIG.GED in the
  576.           current directory, if such a file exists, and to call the context
  577.           diagram to the screen, if it exists.  If no context diagram
  578.           exists in the current directory, GED will provide a screen for
  579.           its creation.  This would be the proper beginning of a new
  580.           project.
  581.  
  582.           The full command line syntax for GED is as follows:
  583.  
  584.                GED [-flags] [initial-diagram-number]
  585.  
  586.           where brackets [] indicate optional specifications
  587.  
  588.           possible flags are:
  589.             -q    loads diagrams "quietly", that is, without detailed
  590.                   error reporting.
  591.  
  592.             -Eeditor uses 'editor' as the minispec editor instead of EDLIN
  593.  
  594.             -ppath uses 'path' as the project directory instead of the
  595.                   current directory, if it exists.
  596.  
  597.             -m6   will set the graphics mode to mode 6 (B&W-600x200).
  598.                   This is useful if a user has an EGA or VGA card, but the
  599.                   only print screen utility available is GRAPHICS.COM
  600.                   (which is only for CGA mode).  Such a user may create
  601.                   diagrams in the default mode, but should use the -m6
  602.                   switch to prepare to print the diagrams.
  603.  
  604.  
  605.           The initial-diagram-number is specified in standard DFD dot
  606.           notation.
  607.             Example:        0.2.3
  608.  
  609.           is the diagram describing the third process in the diagram
  610.           describing the second process in the diagram below context.
  611.  
  612.  
  613.  
  614.  
  615.           Analyst Tool Kit Shareware - 7 -             Revision 041091
  616.  
  617.  
  618.                                                    The Graphic Editor (GED)
  619.  
  620.  
  621.           Remember that if no diagram number is given, the context diagram
  622.           will be called or created.  The context diagram has the special
  623.           number -1, and the diagram describing the context process is 0.
  624.             Example:        GED -q -pB:\MYPROJECT\ 0.2.5
  625.  
  626.           will invoke GED, and silently load DFD number 0.2.5 from the
  627.           directory B:\MYPROJECT\.
  628.  
  629.           Controlling GED
  630.  
  631.           The majority of commands within GED are given using the function
  632.           keys located to the left of the main keyboard (on an IBM PC). The
  633.           default mapping of GED commands to these keys is shown below. Use
  634.           the cardboard overlay provided (or make one) until these keys
  635.           become familiar. The file CONFIG.GED provides for remapping most
  636.           of the keys, should our choices not be yours.
  637.  
  638.           In the list below, <shft> means to hold the shift key down before
  639.           pressing the indicated function key, while <alt> means to do the
  640.           same with the alt key.
  641.  
  642.                <F1>  create process      <shft><F1>  visit DFD
  643.                <F2>  name object         <shft><F2>  name DFD
  644.                <F3>  create external     <shft><F3>  create text
  645.                <F4>  move object         <shft><F4>  unassigned
  646.                <F5>  create store        <shft><F5>  double
  647.                <F6>  save DFD            <shft><F6>  abort DFD
  648.                <F7>  create flow         <shft><F7>  route
  649.                <F8>  redraw DFD          <shft><F8>  exit GED
  650.                <F9>  visit child         <shft><F9>  visit parent
  651.                <F10> delete object       <shft><F10> delete DFD
  652.  
  653.           Most operations can also be done by holding down the Alt key and
  654.           typing the mnemonic for the action.  For example, a process can
  655.           be created with Alt-P.
  656.  
  657.           Some additional special functions are provided by the following
  658.           keys.  COMMAND.COM must be available on the PATH for <A> and <S>.
  659.  
  660.             <esc> the escape key is used to cancel a partially completed
  661.                   operation.
  662.  
  663.             <^P>  produces hardcopy of current DFD. You must have a
  664.                   printer capable of graphic rendition installed, and you
  665.                   must have a suitable graphic driver installed, as per
  666.                   the DOS User's Guide.*
  667.  
  668.  
  669.                               
  670.           * For example, with an IBM PC, an IBM printer, and a CGA card,
  671.           you must run GRAPHICS before invoking GED.  If PostScript output
  672.           is desired, GEDPS may be run after the GED session is completed.
  673.           Epson 9-pin printer compatibles are supported in any graphics
  674.           mode, through CONFIG.GED.
  675.  
  676.  
  677.           Analyst Tool Kit Shareware - 8 -             Revision 041091
  678.  
  679.  
  680.                                                    The Graphic Editor (GED)
  681.  
  682.  
  683.             <^A>  calls the analysis tool (ANAL) from within GED. Only the
  684.                   current diagram is analyzed.
  685.  
  686.             <^S>  performs a system escape. A DOS prompt appears and any
  687.                   DOS operation may be performed within the limits of
  688.                   available memory. The DOS command. The DOS command EXIT
  689.                   will return you to the graphic editor.
  690.  
  691.             <<>   (less than key) will increase the size of the current
  692.                   object.
  693.  
  694.             <>>   (greater than key) will decrease the size of the current
  695.                   object.
  696.  
  697.             A-F9  (The F9 key pressed with the Alt key) will visit (or
  698.                   create) the minispec of the current process.
  699.  
  700.             Ins   The insert key will bring up a menu of objects that can
  701.                   be created
  702.  
  703.             Del   The delete key will delete the current object
  704.  
  705.             C-PgUp  (The PgUp key pressed with the Control key) will visit
  706.                   the parent of the current DFD
  707.  
  708.             C-PgDn  (The PgDn key pressed with the Control key) will visit
  709.                   the child of the current process.
  710.  
  711.           Finally, GED can also be controlled using an optional mouse.
  712.           Each mouse button can have an assigned action; for commands like
  713.           Move and Create Flow, the mouse buttons get temporary new
  714.           assignments.  The default mouse actions are Visit Parent for the
  715.           left button, Visit Child for the right button, and Move for the
  716.           middle button (if any).  Mouse buttons also have context-
  717.           sensitive meanings.  For instance, pressing the left button after
  718.           starting a Flow identifies the endpoint, while the right button
  719.           identifies a route point.  Prompts requiring yes or no answers
  720.           can be answered Yes by pressing the left button, and No by
  721.           pressing the right button.
  722.  
  723.           Basic Operation
  724.  
  725.           Basic graphic concepts and operations for constructing and
  726.           manipulating DFDs are summarized below. The manual provided to
  727.           registered users contains a more complete description of each of
  728.           the commands available.
  729.  
  730.           The Context Diagram
  731.  
  732.           DFDs are organized in the familiar inverted tree structure. The
  733.           root node of every DFD tree is called the context diagram. If GED
  734.           is called with no DFD number specified, the context diagram will
  735.           be called. If the context diagram does not exist, it will be
  736.           created.
  737.  
  738.  
  739.           Analyst Tool Kit Shareware - 9 -             Revision 041091
  740.  
  741.  
  742.                                                    The Graphic Editor (GED)
  743.  
  744.  
  745.  
  746.           The context diagram, numbered -1, has only one process intended
  747.           to show the scope of the project at hand. The process number is
  748.           0. (GED will draw this process for you in the context diagram,
  749.           however, lower-level diagrams will contain nothing but text when
  750.           they are first created.)
  751.  
  752.           The name of the context diagram is "CONTEXT" and cannot be
  753.           changed.
  754.  
  755.           To try this on a real diagram, try the command line
  756.           GED -p sample1
  757.           from your installed ATK directory (Use Shift-F8 to exit when you
  758.           wish--other descriptions in this section assume the diagram is
  759.           still available).
  760.  
  761.           Prompts and messages
  762.  
  763.           GED will prompt the user for information and confirmation in a
  764.           number of circumstances.  GED will also supply informational
  765.           messages as appropriate times.  These messages will always appear
  766.           on the last two lines of the screen.  User-entered input will
  767.           always appear on the last line of the screen.  User-entered input
  768.           is always terminated by the <Enter> key, and is always cancelled
  769.           through the <Esc> key.  Any "yes" or "no" response can be
  770.           answered with a y or n.  The default is "yes".
  771.  
  772.           Description of a process
  773.  
  774.           The description of process 0 is DFD 0.
  775.  
  776.           A DFD inherits its number and name from the number and name of
  777.           the process it decomposes.
  778.  
  779.           The names of DFDs below context are user selectable, however the
  780.           analysis tool (ANAL) will complain if the name of a DFD does not
  781.           match the name of the process it decomposes.
  782.  
  783.           A DFD must have at least one process, and should have no more
  784.           than 8 (up to 50 are supported, however).
  785.  
  786.           DFDs in the tree are visited by using the 'visit child', 'visit
  787.           parent', or 'visit DFD' keys. If the visited DFD does not exist,
  788.           it will be created.
  789.  
  790.           If you press the F9 key while the cursor is located on the
  791.           process in the center of diagram -1; you will see diagram 0
  792.           become visible.
  793.  
  794.           If a process is so well-defined that it can be described
  795.           textually rather than being decomposed, use the 'visit minispec'
  796.           key to edit the text description.  If the minispec does not
  797.           exist, it will be created.  If you decide to decompose the
  798.           process later, GED will prompt you to delete the minispec.
  799.  
  800.  
  801.           Analyst Tool Kit Shareware - 10 -            Revision 041091
  802.  
  803.  
  804.                                                    The Graphic Editor (GED)
  805.  
  806.  
  807.           Redrawing a DFD
  808.  
  809.           A DFD may be re-drawn by pressing the 'redraw DFD' key. This key
  810.           is useful in eliminating occasional artifacts produced as a
  811.           result of drawing and moving objects.
  812.  
  813.           You can get a feel for the speed of this operation by pressing F8
  814.           while a diagram is visible.
  815.  
  816.           Deleting a DFD
  817.  
  818.           A DFD may be deleted (removed from the disk) by pressing the
  819.           'delete DFD' key when the DFD is being displayed. In deleting a
  820.           DFD, all children and minispecs of that DFD will be deleted as
  821.           well.
  822.  
  823.           To experiment with this, please create a diagram or set of
  824.           diagrams you are willing to lose first.
  825.  
  826.           Aborting a DFD
  827.  
  828.           Pressing the 'abort DFD' key will discard all work done since the
  829.           last time the DFD was saved. The DFD is re-read from disk and
  830.           displayed.
  831.  
  832.           Saving a DFD
  833.  
  834.           Pressing the 'save DFD' key will cause the DFD as currently
  835.           displayed to be written to disk.  A new DFD is not permanent
  836.           until it is saved.
  837.  
  838.           Naming a DFD
  839.  
  840.           Pressing the 'name DFD' key will allow for naming or re-naming
  841.           the current DFD, except for the context diagram.
  842.  
  843.           The Cursor
  844.  
  845.           When a DFD is on the screen, a graphic cursor will be visible.
  846.           This cursor is used to point to graphic objects to be placed,
  847.           erased, moved, named, or otherwise manipulated.
  848.  
  849.           The cursor is controlled by the cursor pad keys on the right side
  850.           of the keyboard of an IBM-PC or compatible. On machines with
  851.           separate cursor and numeric pads, the cursor control can be
  852.           switched to the numeric pad by turning off the Num Lock key.
  853.  
  854.           There are two cursor speeds.  The numeric keypad/cursor keys will
  855.           provide coarse motion in any of the 8 directions.  A 'fine'
  856.           cursor is available as well.  The fine cursor will move left,
  857.           right, up, and down via the 'H', 'L', 'K', and 'J' keys
  858.           respectively.  The 'C' key will always jump to the center of the
  859.           screen.
  860.  
  861.  
  862.  
  863.           Analyst Tool Kit Shareware - 11 -            Revision 041091
  864.  
  865.  
  866.                                                    The Graphic Editor (GED)
  867.  
  868.  
  869.           For an object on the screen to be selected, the cursor should be
  870.           somewhere inside its perimeter (for closed objects), or very near
  871.           the object (in the case of flows, flow splitters, and boundary
  872.           points. The object selected is displayed at the bottom of the
  873.           screen.
  874.  
  875.           Creating Objects
  876.  
  877.           In general, objects are created by moving the cursor to the
  878.           desired screen location of the object, and pressing the
  879.           appropriate 'create' key, or by selecting from the menu-like
  880.           selection of the 'create-any' key. This holds true for processes,
  881.           externals, and stores. An opportunity to name the created object
  882.           will be provided.  Names should be alphanumerics, space, dash,
  883.           and underscore characters.
  884.  
  885.           Boundary points are automatically created at the end of flows
  886.           which don't terminate on any other known object. Boundary points
  887.           are not named.
  888.  
  889.           Flows are created by positioning the cursor on the object at
  890.           which the flow will originate, pressing 'create flow', moving the
  891.           cursor to the object where the flow will terminate, and pressing
  892.           'create flow' again.  GED will prompt for a flow name; if the
  893.           flow did not terminate where you desired, the Cancel key (escape)
  894.           will allow you to start again.
  895.  
  896.           The direction of the flow can be altered with the 'double' key
  897.           after the flow is created.
  898.  
  899.           If one end of a flow rests on another flow, a flow splitter will
  900.           be created with no arrow at the junction. Flow splitters are not
  901.           named* .
  902.  
  903.           Flows may be maneuvered around other objects by creating route
  904.           points on them.  Route points can be added while creating a flow
  905.           using the 'route' key.  If you add an unwanted route point, you
  906.           can cancel it by pressing the escape key.  You may then continue
  907.           with the flow.
  908.  
  909.           Stores come in single line and double line varieties. The 'create
  910.           store' key initially draws a double line store. The 'double' key
  911.           may then be used to toggle between the two representations.
  912.  
  913.           Descriptions are a single line of arbitrary text which can be
  914.           placed anywhere on the diagram.  Descriptions are not analyzed in
  915.           the diagram, so their contents do not conform to other objects'
  916.           naming conventions.
  917.  
  918.  
  919.  
  920.  
  921.                               
  922.           * Flow splitters are implemented as route points in ATK.
  923.  
  924.  
  925.           Analyst Tool Kit Shareware - 12 -            Revision 041091
  926.  
  927.  
  928.                                                    The Graphic Editor (GED)
  929.  
  930.  
  931.           Moving Objects
  932.  
  933.           An object may be moved by selecting the object with the cursor
  934.           and pressing 'move object'. The selected object will disappear,
  935.           and the cursor will change to an icon of the moved object. The
  936.           user then moves the cursor to the desired location for the
  937.           object, and 'move object' pressed again.
  938.  
  939.           The operation is so designed that hitting the 'move object' key
  940.           twice without moving the cursor will cause no change in the
  941.           object's position.
  942.  
  943.           Flows may not be moved directly. They are automatically moved
  944.           when objects they are connected to are moved.  A flow name may be
  945.           moved to any point on the diagram; the position is relative to
  946.           the two endpoints of the flow.  If 'move object' is pressed while
  947.           the cursor is on a flow line a route point object is created and
  948.           can be moved.  The flow line passes through each of its route
  949.           points before terminating.
  950.  
  951.           Erasing Objects
  952.  
  953.           When 'delete object' is pressed with the cursor selecting some
  954.           object, the object will be deleted.  Deletion will prompt for
  955.           confirmation, unless the user has configured GED otherwise.
  956.  
  957.           Naming Objects
  958.  
  959.           Pressing the 'name' key allows for the naming or re-naming of an
  960.           object.  When renaming an object, the usual DOS command-line
  961.           editing capabilities are available:  F1 or right arrow copies one
  962.           character from the old name, F4 or delete removes one, and F3
  963.           copies the remainder of the old name.
  964.  
  965.           Customizing GED
  966.  
  967.           GED can be customized by entering configuration lines in the
  968.           CONFIG.GED file.  A few of these lines are described below.  A
  969.           complete set can be found in the ATK reference manual.
  970.  
  971.             ERROR=X  Sets the error file to be the file X.  This setting
  972.                   is recommended (e.g., ERROR=GED.ERR).  Otherwise, errors
  973.                   print to the screen (where they are quickly erased).
  974.  
  975.             MODE=n  Sets the graphics mode to the given number.  For the
  976.                   IBM PC, examples are 6=B&W 640x200; 16=Color 640x350
  977.                   EGA; 17=B&W 640x480 VGA; 18=Color 640x480 VGA.
  978.  
  979.             PROCESS COLOR=n  Sets the color of processes to the color
  980.                   index given.  These indices are mode- and palette-
  981.                   dependent.  (Similarly for EXTERNAL, STORE, FLOW, TEXT)
  982.  
  983.             PRINTER PORT=X  Sets the printer port to the given device
  984.                   name.  Default is LPT1.
  985.  
  986.  
  987.           Analyst Tool Kit Shareware - 13 -            Revision 041091
  988.  
  989.  
  990.                                                    The Graphic Editor (GED)
  991.  
  992.  
  993.             PRINTER MODE=n  Sets the printer mode for Epson 9-pin and
  994.                   compatibles.  Supported modes for the IBM PC are
  995.                   -2        Use Epson driver, preassigned modes
  996.                   -1        Use INT5 support (default if mode unspecified)
  997.                   0         60 DPI
  998.                   1         120 DPI
  999.                   2         High speed 120 DPI (assigned modes 6,17,18)
  1000.                   3         240 DPI
  1001.                   4         80 DPI
  1002.                   5         72 DPI
  1003.                   6         90 DPI (assigned for other modes)
  1004.  
  1005.             EDITOR=X  Sets the default editor for minispecs to path X.
  1006.  
  1007.             NOMOUSE  Turns off mouse support, even if a mouse driver is
  1008.                   loaded.  Useful if running GED from an external
  1009.                   application that wishes to retain control of the mouse.
  1010.  
  1011.           In all, more than 30 customization commands are supported.
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.           Analyst Tool Kit Shareware - 14 -            Revision 041091
  1050.  
  1051.  
  1052.                                                         The Data Dictionary
  1053.  
  1054.  
  1055.  
  1056.           The Data Dictionary
  1057.  
  1058.           Flows and stores in a DFD are potentially decomposed into a
  1059.           series of more detailed flows and stores in the DFDs child. For
  1060.           instance, a flow named user-requests in a particular DFD would
  1061.           probably decompose into several flows in the child.
  1062.  
  1063.           The graphic representation of a DFD does not show the
  1064.           relationship between a flow and its decomposition. The Data
  1065.           Dictionary is an ASCII document specifying this and other
  1066.           relational information, and goes hand in hand with the set of
  1067.           data flows.
  1068.  
  1069.           Dictionary Syntax
  1070.  
  1071.           The Data Dictionary is an ASCII file, and consists of a list of
  1072.           sentences, each terminating with a period.
  1073.  
  1074.           A sentence consists of a left hand side followed by an equal sign
  1075.           followed by a right hand side.
  1076.  
  1077.           The left hand side consists of the name of the thing being
  1078.           described, such as the name of a flow or store.
  1079.  
  1080.           The right hand side consists of one of the following:
  1081.  
  1082.             + the term TBD meaning "To Be Defined".  This is a place
  1083.              holder, indicating that a proper description will be supplied
  1084.              later.
  1085.  
  1086.             + the word PRIMITIVE, which defines an axiomatic entity not to
  1087.              be decomposed further.
  1088.  
  1089.             + a symbolic description of the item in terms of its component
  1090.              items. This description will include one or more other item
  1091.              names, and may use certain symbols to indicate sequences,
  1092.              repetition, choice, or optional components.
  1093.  
  1094.           The exact syntax of legal data dictionary statements is supplied
  1095.           in the manual, and is described in its own syntax. Persons
  1096.           familiar with formal language specification should have no
  1097.           trouble deciphering this description, but the beginning user will
  1098.           do better to study these prototype examples.
  1099.  
  1100.  
  1101.             Example:      A = B + C + D.
  1102.  
  1103.  
  1104.           The item whose name is A is composed exactly of items B, C, and
  1105.           D. The plus sign thus denotes additive composition.
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.           Analyst Tool Kit Shareware - 15 -            Revision 041091
  1112.  
  1113.  
  1114.                                                         The Data Dictionary
  1115.  
  1116.  
  1117.             Example:      A = B + C + (D).
  1118.  
  1119.           The parentheses around item D indicate that it is optional.  That
  1120.           is, an A must have a B and a C, and it may have a D in its
  1121.           composition.
  1122.  
  1123.  
  1124.             Example:      A = B + C + {D}.
  1125.  
  1126.           The braces around item D indicate that zero or more iterations of
  1127.           D are required. A number may be used before the opening brace to
  1128.           indicate a lower limit on the number of iterations. Similarly, a
  1129.           number may be used after the closing brace to indicate an upper
  1130.           limit on the number of iterations.
  1131.  
  1132.           For instance, 1{digit}8 would specify a string of from one to
  1133.           eight digits. The absence of a number before the opening brace
  1134.           implies that a minimum of zero occurrences are permitted, while
  1135.           the absence of a number after the closing brace implies that a
  1136.           potentially infinite number of occurrences are possible.  Notice,
  1137.           then, that A = B + (C) is the same as A = B + {C}1.
  1138.  
  1139.  
  1140.             Example:      A = B + [ C | D ].
  1141.  
  1142.           The bracket and the vertical bar together specify a list of
  1143.           choices. The example would be read, "A is composed of a B and
  1144.           either a C or a D". Notice that the choice is exclusive, that is,
  1145.           A may not contain both a C and a D.
  1146.  
  1147.           To make the choice itself an optional component, we could write,
  1148.  
  1149.                           A = B + ([ C | D ]).
  1150.  
  1151.           which would be read "A is composed of a B, and may include either
  1152.           a C or a D".
  1153.  
  1154.           Whitespace (blanks, tabs, or newlines) may be freely included for
  1155.           readability. Since a single sentence may thus span more than one
  1156.           line, the period which ends the sentence is very important.
  1157.  
  1158.           A comment is a string of text bounded by asterisks.  Comments are
  1159.           also terminated by new lines.  Comments may be freely included
  1160.           virtually anywhere, even between items in a sentence. If a
  1161.           literal asterisk is needed, prefix it with a backslash.
  1162.  
  1163.             Example:      A = B + * this is a comment * C + D.
  1164.  
  1165.             Example:      * comments use the \* to identify themselves *
  1166.  
  1167.           To put some of the preceding information together, the following
  1168.           group of sentences specify the syntax of a FORTRAN style integer
  1169.           variable, which must start with one of the letters I thru N, and
  1170.           may contain one thru seven additional alphanumeric characters.
  1171.  
  1172.  
  1173.           Analyst Tool Kit Shareware - 16 -            Revision 041091
  1174.  
  1175.  
  1176.                                                         The Data Dictionary
  1177.  
  1178.  
  1179.  
  1180.             integer_name = first_char + rest.
  1181.  
  1182.             first_char = [I|J|K|L|M|N].
  1183.  
  1184.             rest = {[ALPHA|NUMBER]}7.
  1185.  
  1186.             ALPHA = letter_of_the_alphabet.
  1187.  
  1188.             NUMBER = DIGIT.
  1189.  
  1190.             letter_of_the_alphabet = PRIMITIVE.
  1191.  
  1192.             DIGIT = PRIMITIVE.
  1193.  
  1194.           Notice that the above description could have been written in a
  1195.           variety of ways, some of them being more concise.
  1196.  
  1197.           The sentence "NUMBER = DIGIT." may seem useless, since it does
  1198.           not decompose NUMBER. In fact, it specifies that NUMBER and DIGIT
  1199.           are aliases , which means that they may be used interchangeably.
  1200.           This feature is useful in a variety of scenarios, such as when
  1201.           portions of a project are specified by different individuals who
  1202.           choose different names for the same thing.
  1203.  
  1204.           Study the data dictionary file called SAMPLE.DCT provided in the
  1205.           SAMPLE subdirectory of the product disk for examples of data
  1206.           dictionary language usage and style.
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.           Analyst Tool Kit Shareware - 17 -            Revision 041091
  1236.  
  1237.  
  1238.                                           Data Dictionary Builder (DDBUILD)
  1239.  
  1240.  
  1241.  
  1242.           Data Dictionary Builder (DDBUILD)
  1243.  
  1244.           DDBUILD is a convenience tool which will scan one or all of the
  1245.           DFDs in a project and extract all the flow and store names used
  1246.           into a preliminary form in the data dictionary. Names appear only
  1247.           once, no matter how many times they are encountered, and are
  1248.           defined equal to TBD. While DDBUILD knows nothing about the
  1249.           intended relationships among the names, it does save the user a
  1250.           tremendous amount of initial typing. The user may then employ any
  1251.           text editor to fill in the necessary information as it becomes
  1252.           available.
  1253.  
  1254.           DDBUILD will create a new data dictionary if one does not exist,
  1255.           or it will append to an existing dictionary. Consider then, that
  1256.           if you change the name of an item in the DFD set and rerun
  1257.           DDBUILD, the new name will be added, but the old name will
  1258.           remain.
  1259.  
  1260.           Command Overview
  1261.  
  1262.           The simplest invocation is to type DDBUILD at the system prompt.
  1263.           In this case DDBUILD will build or add to a file called DATA.DCT
  1264.           in the current directory the names of all flows and stores found
  1265.           in all the DFDs on the primary chain.
  1266.  
  1267.           NOTE: The primary chain is the chain of all DFDs whose first
  1268.           number is 0, such as 0.2.3.  It is possible to create DFDs with
  1269.           other digits in the first position, such as 3.4.2.  These DFDs
  1270.           are considered to exist on side chains, and are normally
  1271.           invisible to the analysis tools.  Side chains are a way of
  1272.           keeping DFDs around without having them enter into the analysis.
  1273.           Such DFDs may be renamed (DOS RENAME command) to make them
  1274.           "active".  Notice that DFDs are given filenames which correspond
  1275.           to their dot specifications minus the dots, and file extensions
  1276.           of .DFD.
  1277.  
  1278.           The full command line syntax for DDBUILD is as follows:
  1279.  
  1280.                DDBUILD [-flags] [dfd dfd ... dfd]
  1281.  
  1282.           where brackets [] indicate optional specifications.
  1283.  
  1284.           possible flags are:
  1285.              -i   suppress case sensitivity, e.g 'ABC' will be treated the
  1286.                   same as 'abc'.
  1287.  
  1288.              -ppath path to use to find DFDs instead of the current
  1289.                   directory
  1290.  
  1291.           Flags are optionally followed by a list of one or more DFDs to
  1292.           add to the dictionary.  The default is to add all DFDs on the
  1293.           main path (-1 and 0*)
  1294.  
  1295.  
  1296.  
  1297.           Analyst Tool Kit Shareware - 18 -            Revision 041091
  1298.  
  1299.  
  1300.                                          Data Dictionary Evaluator (DDEVAL)
  1301.  
  1302.  
  1303.  
  1304.           Data Dictionary Evaluator (DDEVAL)
  1305.  
  1306.           DDEVAL will read a project's data dictionary and DFDs and report
  1307.           errors and omissions in the specifications. When invoked by its
  1308.           name alone, it will look for a file called DATA.DCT in the
  1309.           current directory, and will produce its report to the screen.
  1310.  
  1311.           DDEVAL will perform a somewhat detailed analysis of the
  1312.           dictionary, and is able to report such things as aliasing
  1313.           problems, items which are defined but never used, and items which
  1314.           are undefined.
  1315.  
  1316.           Command Overview
  1317.  
  1318.           The simplest invocation is to type DDEVAL at the system prompt.
  1319.           In this case DDEVAL will evaluate the data dictionary file
  1320.           DATA.DCT and give a report
  1321.           to the CRT.
  1322.  
  1323.           The full command line syntax for DDEVAL is as follows:
  1324.  
  1325.                DDEVAL [-flags]
  1326.  
  1327.           where brackets [] indicate optional specifications.
  1328.  
  1329.           possible flags are:
  1330.             -i    ignore case in comparisons (Hello = HELLO)
  1331.  
  1332.             -v    report version information
  1333.  
  1334.             -ppath use 'path' to locate the data dictionary to evaluate.
  1335.  
  1336.           Example:         DDEVAL -PB:\MYSTUFF\
  1337.  
  1338.           will evaluate the data dictionary and DFDs in directory
  1339.           B:\MYSTUFF.
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.           Analyst Tool Kit Shareware - 19 -            Revision 041091
  1360.  
  1361.  
  1362.                                                    The Analysis Tool (ANAL)
  1363.  
  1364.  
  1365.  
  1366.           The Analysis Tool (ANAL)
  1367.  
  1368.           Just as DDEVAL performs an analysis from the standpoint of the
  1369.           data dictionary, the tool ANAL performs a similar analysis from
  1370.           the standpoint of the DFDs themselves. Each DFD is examined and a
  1371.           list of potential errors is produced. Most of the evaluation
  1372.           rules apply to a single diagram while a few require a DFD to be
  1373.           examined in context with its parent. In addition, ANAL uses the
  1374.           data dictionary, which it expects to be called DATA.DCT, to
  1375.           determine flow decomposition and aliasing, and can then look for
  1376.           consistency in the diagrams. Thus, it is wise to build as much of
  1377.           the data dictionary as possible before using ANAL, to avoid
  1378.           excessive numbers of errors concerning flows.
  1379.  
  1380.           Command Overview
  1381.  
  1382.           The simplest invocation is to type ANAL at the system prompt.  In
  1383.           this case ANAL will examine all the DFDs it can find on the
  1384.           primary chain, and make its report to the standard output.
  1385.  
  1386.           The full command line syntax for ANAL is as follows:
  1387.                ANAL [-flags] [dfd]
  1388.           where brackets [] indicate optional specifications.
  1389.  
  1390.           possible flags are:
  1391.             -a    load data dictionary (DATA.DCT) to resolve aliases for
  1392.                   flows and stores
  1393.  
  1394.             -i    ignore case in comparisons. (default is case sensitive)
  1395.  
  1396.             -ppath look for DFDs under the directory 'path'
  1397.  
  1398.           DFD is specified in standard dot notation.
  1399.  
  1400.           Example:         ANAL -i -pB:\MYSTUF\  0.2.3
  1401.  
  1402.           Two major categories of errors are detected.
  1403.             + Object usage errors which include such things as processes
  1404.              with no flows, duplicate names, and data sources/sinks.
  1405.  
  1406.             + Boundary errors which catch problems occurring across the
  1407.              parent/child interface such as the sudden appearance of a
  1408.              single-line store, or the disappearance of a flow.
  1409.  
  1410.           A description of the customization of the analysis process is
  1411.           provided in full in the manual.  The analysis configuration file
  1412.           is CONFIG.ANA.  Each of the 9 tests can be set to ON or OFF
  1413.           (default is ON).  The tests are:
  1414.           process flows  store flows    process child or minispec
  1415.           flow endpoints flow names     duplicate names
  1416.           store double                  parent child name check
  1417.           parent child flows in         parent child flows out
  1418.  
  1419.  
  1420.  
  1421.           Analyst Tool Kit Shareware - 20 -            Revision 041091
  1422.  
  1423.  
  1424.                                                    The Analysis Tool (ANAL)
  1425.  
  1426.  
  1427.           The example in the SAMPLES1 directory is excellent for
  1428.           illustrating this tool.  Invoking ANAL will give 30 odd lines of
  1429.           errors; half of them are because some processes do not have child
  1430.           diagrams or minispecs.
  1431.  
  1432.           If we decide we aren't ready to have that level of scrutiny yet,
  1433.           we add the line
  1434.           process child or minispec = OFF
  1435.           to our CONFIG.ANA file.
  1436.  
  1437.           Running ANAL again will give about half-a-dozen errors and
  1438.           warnings.  As is typical, 4 of them have to do with naming
  1439.           conventions.  A flow that is called 'source code' in one diagram
  1440.           is called 'source language' in another.  The data dictionary is
  1441.           used to document and resolve these problems.  A line in the data
  1442.           dictionary stating
  1443.           source code = source language.
  1444.           will assert this truth (the period is critical).  Similarly, we
  1445.           enter a line
  1446.           process output = output.
  1447.  
  1448.           Running ANAL -a still has 4 error lines, because the diagram has
  1449.           Process Output (and we entered process output).
  1450.  
  1451.           Running ANAL -a -i now has only two warning lines.  They indicate
  1452.           that in diagram 0.5, the flows in and out of a store are named,
  1453.           and the name is not an alias of the store.  An explanation of why
  1454.           this is an error is that if you have a aluminum recycling bin,
  1455.           you want to make sure no one is putting paper into it.  No one
  1456.           has told the data dictionary that a servicable process is a kind
  1457.           of awaiting process (one that can now be serviced).
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.           Analyst Tool Kit Shareware - 21 -            Revision 041091
  1484.  
  1485.  
  1486.                                                            Report Generator
  1487.  
  1488.  
  1489.  
  1490.           Report Generator
  1491.  
  1492.           The Report Generator, called RG, is a pretty printer utility
  1493.           capable of paginating the output from the various tools and
  1494.           providing page header and/or footer capability. The utility will
  1495.           access a file, called CONFIG.RG, to obtain default formatting
  1496.           parameters, and can additionally be used to provide simple
  1497.           formatting for arbitrary user generated files.
  1498.  
  1499.           Command Overview
  1500.  
  1501.           The simplest invocation is to type
  1502.                RG {type}
  1503.           at the system prompt, where {type} is a single digit 1,2,or 3,
  1504.           designating the data dictionary, dictionary exceptions, or DFD
  1505.           tree exceptions respectively.
  1506.  
  1507.           The utility looks for the files DATA.DCT (data dictionary),
  1508.           DICT.ERR (data dictionary exceptions), or DFDS.ERR (DFD tree
  1509.           exceptions) and will automatically invoke DDBUILD, DDEVAL, or
  1510.           ANAL to produce them if they are not found.
  1511.  
  1512.           If the output of a tool has been directed to a file with a name
  1513.           other than that expected by RG, the filename should be specified
  1514.           after {type}.
  1515.  
  1516.           NOTE: For the automatic tool invocation to work, a copy of
  1517.           COMMAND.COM must be available on the PATH.
  1518.  
  1519.           A variety of command line options are available with RG, as well
  1520.           as some complex possibilities for CONFIG.RG.  The full command
  1521.           line syntax for RG is as follows:
  1522.  
  1523.                 RG [flags] report-type [report file]
  1524.  
  1525.           Possible flags are;
  1526.              -P   Output the printer initialization string before printing
  1527.                   any text, and output the printer term string after
  1528.                   printing all text.
  1529.  
  1530.              -ok  Use k as the page offset (left margin)
  1531.  
  1532.              -tk  Use k as the top margin
  1533.  
  1534.              -bk  Use k as the bottom margin
  1535.  
  1536.              -Rs  Use string spec s as the report title
  1537.  
  1538.              -Hs  Use string spec s as the page header
  1539.  
  1540.              -Fs  Use string s as the page footer
  1541.  
  1542.              -If  Use file f to initialize RG variables
  1543.  
  1544.  
  1545.           Analyst Tool Kit Shareware - 22 -            Revision 041091
  1546.  
  1547.  
  1548.                                                            Report Generator
  1549.  
  1550.  
  1551.              -lk  Use k as the page length in lines
  1552.  
  1553.              -wk  Use k as the page width in characters
  1554.  
  1555.              -nk  Use k as the page number of the first printed page
  1556.  
  1557.  
  1558.              report      Meaning                          intermediate file
  1559.              type
  1560.            ---------   ----------------                   -------------
  1561.               1       data dictionary                     [DATA.DCT]
  1562.               2       data dictionary exceptions          [dict.err]
  1563.               3       DFD-tree exceptions                 [dfds.err]
  1564.               4       Generic print file report           ----------
  1565.             5-9       User defined reports                ----------
  1566.  
  1567.             report file: A report file can be any legal MS-DOS file name
  1568.                          The file name will support alternate drives and
  1569.                          paths
  1570.  
  1571.           Each report will have a default name (see above).
  1572.  
  1573.           The default titles of user-defined reports can be stored  in the
  1574.           preference file.
  1575.  
  1576.           String notation "..." is supported on the command line to collect
  1577.           a string including spaces, except for characters '<', '>', '|',
  1578.           '+', and '=' which may not be used within them (MS-DOS gets
  1579.           them!).
  1580.  
  1581.             Example:     RG 2
  1582.  
  1583.           will generate the data dictionary exception report to the screen
  1584.  
  1585.             Example:     RG -P 3 >LPT1:
  1586.  
  1587.           will generate the DFD exception report, and print it to the
  1588.           default printer, using printer initialization strings.
  1589.  
  1590.             Example: RG 4 "-RCurrent Listings,nl,nl" list.txt > list.out
  1591.  
  1592.           will generate a user-defined report called Current Listings from
  1593.           a file called list.txt and put it in a file called list.out.
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.           Analyst Tool Kit Shareware - 23 -            Revision 041091
  1608.  
  1609.  
  1610.                                                         Miscellaneous Tools
  1611.  
  1612.  
  1613.  
  1614.           Miscellaneous Tools
  1615.  
  1616.  
  1617.           Attach
  1618.  
  1619.           Data flow diagrams (and their associated minispecs) may need to
  1620.           be reused from one project to the next, or from one part of the
  1621.           project to the next.  Also, sets of diagrams may need to be
  1622.           backed up from time to time.  The tool provided for these jobs is
  1623.           attach.
  1624.  
  1625.           Attach syntax is
  1626.                ATTACH [-sSOURCE-DIR] [-dTARGET-DIR] From-DFD[*] To-DFD
  1627.  
  1628.           The source and target directories may contain drive and directory
  1629.           information.  Use the optional asterisk (*) to copy the entire
  1630.           tree--without it a single DFD will be copied.
  1631.  
  1632.           GEDPS
  1633.  
  1634.           Postscript has become the page description language of choice for
  1635.           desktop publishing.  When presenting DFDs, a neat diagram is
  1636.           essential.  ATK provides encapsulated PostScript files as output
  1637.           from the GEDPS tool.
  1638.  
  1639.           GEDPS syntax is
  1640.                GEDPS [-r] [-foutput-file] DFD[*]
  1641.  
  1642.           The asterisk is used for wildcarding and is not useful if the
  1643.           documents are incorporated in a desktop publishing system.  The
  1644.           output output is normally directed to the screen, so the -f flag
  1645.           is normally supplied.  The -r flag is used to rotate the diagrams
  1646.           from their normal landscape orientation on 8-1/2" by 11" paper to
  1647.           portrait mode.  The file GEDPS.PS is the Postscript prologue.
  1648.  
  1649.           PS
  1650.  
  1651.           Without a desktop publishing system, it can be difficult to print
  1652.           Postscript files.  Traditional Postscript printers are controlled
  1653.           through the serial port, one of the weaker areas of the IBM PC
  1654.           design.  A tool which supports simple flow-controlled serial port
  1655.           protocol is required--in the absence of other public domain
  1656.           offerings, we include PS.  PS is a very simple program which uses
  1657.           the built in commands to communicate with the serial port.
  1658.           Because of this, PS may lose received characters sometimes.  This
  1659.           tradeoff was made in the name of full portability.
  1660.  
  1661.           PS syntax is
  1662.                PS [-p[COM]<1,2,3,4>] [-w] [-b] filename ...
  1663.  
  1664.           The default port is COM2; COM3 and COM4 are only supported if the
  1665.           BIOS (INT14) recognizes them.  The port characteristics should be
  1666.           set in advance (for IBM PCs, via the MODE command).  The -w
  1667.  
  1668.  
  1669.           Analyst Tool Kit Shareware - 24 -            Revision 041091
  1670.  
  1671.  
  1672.                                                         Miscellaneous Tools
  1673.  
  1674.  
  1675.           option is used to wait after all the files have been sent (in
  1676.           case of suspected error messages); pressing any key will exit.
  1677.           The -b option is rarely useful--it does a binary transfer of the
  1678.           file(s).  The option is included for those occasional Postscript
  1679.           image files that contain 8-bit data.
  1680.  
  1681.           KB
  1682.  
  1683.           The CONFIG.GED file allows remapping of keys via lines of the
  1684.           form
  1685.                key-code=action
  1686.  
  1687.           Rather than supply a chart to look up key codes, the KB program
  1688.           prints those codes in the appropriate format.  ASCII characters
  1689.           are represented by their codes.  Sample actions include
  1690.                PROCESS   EXTERNAL  STORE     DESCRIPTION
  1691.                FLOW      CHILD     PARENT    ROUTE
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.           Analyst Tool Kit Shareware - 25 -            Revision 041091
  1732.  
  1733.  
  1734.                                                                       Index
  1735.  
  1736.  
  1737.  
  1738.                                         Index
  1739.  
  1740.             A                                       process, 10
  1741.                  abort DFD, 11                      prompt, 10
  1742.                  alias, 17                          PS, 24
  1743.                  ANAL, 2,5,9,10,20,22          R
  1744.                  ATTACH, 2,24                       RG, 2,5,22
  1745.             B                                       route point, 12,13
  1746.                  boundary point, 12            S
  1747.             C                                       save DFD, 11
  1748.                  chain, 18                          side chain, 18
  1749.                  child, 10,11                  T
  1750.                  CONFIG.ANA, 20                     TBD, 15
  1751.                  CONFIG.GED, 13,25                  text editor, 7,14
  1752.                  CONFIG.RG, 22                 U
  1753.                  context diagram, 10                user input, 10
  1754.                  cursor, 11,12
  1755.             D
  1756.                  data dictionary,
  1757.                  2,15,18,19,20,23
  1758.                  DDBUILD, 2,18
  1759.                  DDEVAL, 2
  1760.                  delete, 13
  1761.                  delete DFD, 11
  1762.                  DeMarco, Tom, 1
  1763.                  description, 12
  1764.                  double, 12
  1765.             E
  1766.                  editor, 7,14
  1767.             F
  1768.                  floppy, 6
  1769.                  flow, 12,13
  1770.                  flow splitter, 12
  1771.             G
  1772.                  GED, 2,5,6
  1773.                  GEDPS, 2,24
  1774.                  GEDPS.PS, 24
  1775.                  graphic cursor, 11,12
  1776.             H
  1777.                  hard disk, 6
  1778.             I
  1779.                  input, 10
  1780.             M
  1781.                  minispec, 9,10,11,14
  1782.                  mouse, 9,14
  1783.                  move, 13
  1784.             N
  1785.                  name DFD, 11
  1786.                  name object, 13
  1787.             P
  1788.                  primary chain, 18
  1789.                  primitive, 15
  1790.                  print, 4,8,14,22,24
  1791.  
  1792.  
  1793. Analyst Tool Kit Shareware - 26 -            Revision 041091
  1794.