| 1 |
<!-- $Id: Attach.html,v 1.3 1999/04/29 16:16:29 fw Exp $ --> |
| 2 |
<head> |
| 3 |
<title>Interactive Attach</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
<BODY BGCOLOR=#ffffff> |
| 7 |
|
| 8 |
<h2>Interactive Attach</h2> |
| 9 |
|
| 10 |
<h3>Useful Terms</h3> |
| 11 |
|
| 12 |
<DL> |
| 13 |
<DT><strong>acceptor</strong> |
| 14 |
<DD>the text window into which you are importing data. |
| 15 |
<DT><strong>donor</strong> |
| 16 |
<DD>the object or class from which you are importing data |
| 17 |
</DL> |
| 18 |
|
| 19 |
Attach allows you to move information from one object or group of |
| 20 |
objects into the for another object. This is useful for viewing |
| 21 |
convenience, printing, and dumping. Attach is complex but extremely |
| 22 |
powerful; we recommend learning about it via experimentation. It is |
| 23 |
still being developed and will probably be extended to include |
| 24 |
additional features.<p> |
| 25 |
|
| 26 |
<h3>Menu items:</h3> |
| 27 |
|
| 28 |
<ul> |
| 29 |
|
| 30 |
<li><strong>Attach</strong>: invokes <A HREF="Tag-Chooser.html">tag |
| 31 |
chooser</a> corresponding to selected donor(s); you must pick branch |
| 32 |
from donor to import into acceptor. The tag chooser is a blocking |
| 33 |
window; you must respond to it with a selection or CANCEL to continue. |
| 34 |
|
| 35 |
<li><strong>Detach</strong>: remove attached data from selected donor; |
| 36 |
you must collapse and expand the relevant tag in the acceptor for this |
| 37 |
to take effect. See help for <A HREF="Tree.html">text windows</a> |
| 38 |
for an explanation of collapse/expand. |
| 39 |
|
| 40 |
<li><strong>Attach Recursively</strong>: invokes tag chooser |
| 41 |
corresponding to selected donor; you must pick branch from donor to |
| 42 |
import into acceptor. <var>Recursively</var> means donor refers to a |
| 43 |
donor which refers to a donor... and you want to import this entire |
| 44 |
data chain into the acceptor. |
| 45 |
|
| 46 |
<li><strong>Help on attach</strong>: brings up this help. </ul> |
| 47 |
|
| 48 |
<H3>Making an attachment</h3> |
| 49 |
|
| 50 |
1. First you must choose a single or group of donor objects from which |
| 51 |
to retrieve information. Do this by selecting (clicking once) on a |
| 52 |
tag or object in the acceptor window. If you click a tag, ACE looks to |
| 53 |
the right to determing the object or objects in the donor |
| 54 |
class(es). Note that data in a <A HREF="Tree.html">text window</a> is |
| 55 |
arranged in a branching structure which functions as a hierarchical |
| 56 |
outline. A tag identifies all objects "under" it as potential |
| 57 |
donors.<p> |
| 58 |
|
| 59 |
<ul> |
| 60 |
<li>If a tag is flanked on the right by another tag, ACEDB continues |
| 61 |
rightward until it finds a valid object. It must find the first |
| 62 |
valid object on the first line or else the attachment will fail |
| 63 |
with an error. |
| 64 |
|
| 65 |
<li>If additional data lies to the right of the donor object in the |
| 66 |
acceptor, the attachment operation fails for that object. |
| 67 |
|
| 68 |
</ul> |
| 69 |
|
| 70 |
2. Second, you must choose which part of the donor to retrieve.<p> |
| 71 |
|
| 72 |
Select "Attach" from the pull-down "Attach..." menu (see below for |
| 73 |
"Attach Recursively"). A <A HREF="Tag-Chooser.html">tag chooser |
| 74 |
window</a> will appear. The tag chooser shows the layout of the donor |
| 75 |
class. In cases where a tag identifies donors from different classes, |
| 76 |
the tag chooser shows the class for the donor on the same line as the |
| 77 |
tag.<p> |
| 78 |
|
| 79 |
Again, data in objects is arranged in a branching structure which |
| 80 |
functions as a hierarchical outline. To identify a branch or |
| 81 |
sub-branch to import, double-click on a tag or field. Choose a tag if |
| 82 |
you want to import the branch it defines, i.e., the tag itself as well |
| 83 |
as everything "indented" under that tag.<p> |
| 84 |
|
| 85 |
Choosing a field gives a different effect. ACEDB identifies the branch |
| 86 |
that contains the field by looking leftward until it encounters a |
| 87 |
tag. But instead of importing the entire branch, only the part of the |
| 88 |
branch that contains the field of interest is taken.<p> |
| 89 |
|
| 90 |
The tag chooser will only show a single class. However, if your donors |
| 91 |
come from different classes, ACEDB will silently examine them to see |
| 92 |
if they contain a branch like the one you chose in the tag-chooser.<p> |
| 93 |
|
| 94 |
As soon as you double-click, the tag chooser will disappear.<p> |
| 95 |
|
| 96 |
3. Third, the donor you originally selected will now be collapsed |
| 97 |
(indicated by arrow and number). Uncollapse it by clicking once to see |
| 98 |
the attached information. See help for <A HREF="Tree.html">text |
| 99 |
windows</a> for more information about collapse/expand.<p> |
| 100 |
|
| 101 |
<ul> |
| 102 |
<li>you can now choose other donors in the acceptor and import |
| 103 |
information from them by repeating the steps above. Donors may |
| 104 |
be chosen from newly attached information. |
| 105 |
<li>no data appears if the donor object(s) lack the information |
| 106 |
you are trying to import. |
| 107 |
<li>no data appears for a donor if it is flanked on the right |
| 108 |
in the acceptor by other information. |
| 109 |
</ul> |
| 110 |
|
| 111 |
<h3>Detatch</h3> |
| 112 |
|
| 113 |
To remove imported information, pick the donor in the acceptor window |
| 114 |
and select the "Detach" item from the menu. The information will still |
| 115 |
be visible in the acceptor until you collapse and expand the donor by |
| 116 |
clicking on it. If a text window opens instead, that's because you |
| 117 |
clicked on an object name. Try collapsing and expanding a tag to the |
| 118 |
donor's left instead.<p> |
| 119 |
|
| 120 |
<h3>Attach Recursively</h3> |
| 121 |
|
| 122 |
In some cases objects are linked together in a recursive fashion. For |
| 123 |
example, in a cell lineage a particular cell may have one or more |
| 124 |
daughters, each of which may have daughters, and so on. A recursive |
| 125 |
attachment allows you to follow these links and import information |
| 126 |
from them into the same acceptor window.<p> |
| 127 |
|
| 128 |
to <a href="TOC.html">Table of Contents</a><p> |
| 129 |
|
| 130 |
last edited: July 1994<p> |
| 131 |
|
| 132 |
</BODY> |