|
Abstract
This document describes the features of a style file wotree.sty, for drawing Warnier/Orr diagrams in TEX-based documents with the DraTex.sty and AlDraTex.sty packages. The style file and the documentation are also available in zipped format. |
A Warnier/Orr diagram is requested by a command of the following form.
As is the case for the parameters of other types of nodes of AlDraTEX, spaces may be requested by tilde character ‘~’, line breaks by the double-tilde characters ‘~~’, horizontal text shifting by the TEX commands \hfil and \hfill, and execution tracing by the directives \TraceDiagramOn and \TraceDiagramOff.
The spacing between nodes can be altered with the following command, where the dimensions are assumed to be in point units.
\defWO{}{\llap{$\triangleright$ }}
\defWO{not}{\hrulefill~~\WO{}}
\defWO{or}{~$\bigoplus$}
\defWO{plus}{~$+$}
\defWO{xor}{~$\bigotimes$}
|
|
Hierarchy / Sequence:
|
\Draw \WOSpace(10,30)\Large
\WOTree{
Children,
child ~1,
child ~2,
child ~3
}
\EndDraw
|
|
Selection:
|
\Draw \WOSpace(10,30)\Large
\WOTree{
direction,
left, \WO{or}, right
}
\EndDraw
|
|
Complementation:
|
\Draw \WOSpace(10,30)\Large
\WOTree{
size,
small,
\WO{or},
\WO{not}small
}
\EndDraw
|
|
Repetition:
|
\Draw \WOSpace(10,30)\Large
\WOTree{
execute,
front\hfill ~~{(1)},
loop\hfill ~~{(2,7)},
back
}
\EndDraw
|
|
Concurrency:
|
\Draw \WOSpace(10,30)\Large
\WOTree{
tasks,
task~A,
\WO{plus},
task~B,
task~C
}
\EndDraw
|
A larger example:
\Draw
\WOTree{
Handle\hfill ~~Rankokus\hfill ~~Indian\hfill
~~Reservation \hfill,
{
Initiate\hfill ~~Processing\hfill ~~{(1)},
Open~ All~ Files\hfill ~~ {(1)},
{
Process~ User~ Level\hfill ~~ {(1)},
{
General~ User \hfill ~~ {(1)},
Restrict~ Access\hfill ~~ File~ \&~
Custom\hfill ~~ Query~ Access \hfill
},
\WO{xor},
Database~ Manager\hfill ~~{(1)}
}
},
{
Main\hfill ~~Processing\hfill ~~{(N)},
{
Process~ File \hfill ~~ Management\hfill
~~ Transaction\hfill ~~{(N)},
Add,
\WO{or},
Delete ,
\WO{or},
Modify
},
\WO{or},
{
Process~ Query \hfill~~ Transaction
\hfill ~~{(N)},
Get~ Query\hfill ~~ {(or)}~ Get\hfill~~
Custom~ Query \hfill,
Search~ Database \hfill,
Display~ Records~ Req \hfill,
Perform~ File\hfill ~~ Maintenance~
Based\hfill ~~ On~ Query \hfill,
Print~ Selected\hfill ~~ Records \hfill
}
},
{
Terminate\hfill ~~Processing\hfill ~~{(1)},
Close~ All~ Files \hfill ~~{(1)}
}
}
\EndDraw
The wotree.sty file is provided under the LATEX Project Public License (LPPL). However, it is allowed to modify the file without changing its name, if the signature of the file is modified (see copyright notice within the file).
gurari@cse.ohio-state.edu
http://www.cse.ohio-state.edu/~gurari