| 1 |
<!-- $Id: Class_Configuration.html,v 1.1 1999/05/03 13:50:46 fw Exp $ --> |
| 2 |
<head> |
| 3 |
<title>options.wrm</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
<BODY BGCOLOR=#ffffff> |
| 7 |
|
| 8 |
<h2>Configuring Classes with options.wrm</h2> |
| 9 |
|
| 10 |
The special configuration file <B>wspec/options.wrm</B> is read |
| 11 |
in conjunction with the database models when the acedb application |
| 12 |
starts up.<BR> |
| 13 |
It holds the class definitions necessary to the applications. |
| 14 |
The kernel classes are defined in the program code.<BR> |
| 15 |
Most options can be changed freely to configure the behaviour |
| 16 |
of certain aspects of the program.<BR> |
| 17 |
|
| 18 |
<H3>File format</H3> |
| 19 |
|
| 20 |
All lines starting with _V<class> are parsed, where <class> |
| 21 |
is a valid class name from the database models or the name of |
| 22 |
a kernel class, if it is wise to change its configuration.<BR> |
| 23 |
|
| 24 |
This token is followed by a set of parameters which is written |
| 25 |
like a Unix style command line, i.e. each option starts with a dash '-' |
| 26 |
followed by the option name. Option names can be abbreviated down |
| 27 |
to the shortest possible length where no ambiguity is possible. |
| 28 |
|
| 29 |
<H3>Class options</H3> |
| 30 |
|
| 31 |
<DL> |
| 32 |
<DT>-Visible</DT> |
| 33 |
<DD>This class will automatically appear in the class chooser of |
| 34 |
the acedb main window.<P> |
| 35 |
This will only affect the default class layout when the |
| 36 |
program first starts. The final layout of the classes |
| 37 |
in the main window can be configured in the |
| 38 |
<A HREF="Layout.html">Layout editor</A> or in the configuration |
| 39 |
file wspec/layout.wrm<P> |
| 40 |
</DD> |
| 41 |
|
| 42 |
<DT>-Hidden</DT> |
| 43 |
<DD>This class is not shown automatically in the main window |
| 44 |
class chooser, but will be listed in the class-menu in the |
| 45 |
button 'Other class...' in the main window.<P> |
| 46 |
</DD> |
| 47 |
|
| 48 |
<DT>-Array</DT> |
| 49 |
<DD>The class is of type 'A' (a class containing fixed sized |
| 50 |
elements in the style of arrays or tuples.) |
| 51 |
An example is the built-in DNA class, which contains a sequence |
| 52 |
of special characters A, C, T, G.<BR> |
| 53 |
The user will not typically use this option.<P> |
| 54 |
</DD> |
| 55 |
|
| 56 |
|
| 57 |
<DT>-Btree</DT> |
| 58 |
<DD>The class is of type 'B', which are the user-defined classes |
| 59 |
in models.wrm, which have a tree-like structure.<BR> |
| 60 |
As this is the default for classes that appear in models.wrm, |
| 61 |
The user will not typically use this option.<P> |
| 62 |
</DD> |
| 63 |
|
| 64 |
|
| 65 |
<DT>-Display <displaytype></DT> |
| 66 |
<DD>An important option to configure the behaviour of the graphical |
| 67 |
acedb applications. All 'B' class objects are usually shown |
| 68 |
in the textual <A HREF="Tree.html">Tree</A> display, when the |
| 69 |
object is fecthed by a double click in a graphical display. |
| 70 |
However special displays like the Map displays have been written |
| 71 |
for certain classes to present the object's information |
| 72 |
graphically.<BR> |
| 73 |
This option is used to configure, which display will be used by |
| 74 |
default. There are a number of displays, but to give an example, |
| 75 |
the type GMAP is used for the Map class, or the type FMAP for the |
| 76 |
Sequence class. The option 'Show as Text' which is available |
| 77 |
in the <A HREF="KeySet.html">KeySet window</A> and also in map |
| 78 |
displays will force the display in the default TREE display |
| 79 |
if necessary.<P> |
| 80 |
</DD> |
| 81 |
|
| 82 |
<DT>-Title <Tag></DT> |
| 83 |
<DD>If present in some object of that class, the text following it |
| 84 |
will be used preferentially when referring to that object.<P> |
| 85 |
</DD> |
| 86 |
|
| 87 |
<DT>-Symbol <Tag></DT> |
| 88 |
<DD>If present in some object of that class, the text |
| 89 |
or key following it will be used preferentially |
| 90 |
when referring to that object in Maps.<P> |
| 91 |
</DD> |
| 92 |
|
| 93 |
|
| 94 |
<DT>-Rename <otherName></DT> |
| 95 |
<DD>Other name will show in lists, old and new |
| 96 |
name will be recognized in ace files and queries, old |
| 97 |
is used in the code. In case some newName |
| 98 |
matches some old name, the new name takes precedence.<P> |
| 99 |
</DD> |
| 100 |
|
| 101 |
<DT>-CaseSensitive</DT> |
| 102 |
<DD>The names in this class will be case sensitive |
| 103 |
(case-insensitivity is the default). |
| 104 |
This applies to all queries. A case-sensitive class |
| 105 |
can have an object called 'aa' and another object 'AA'. |
| 106 |
By default a class is not case-sensitive, so in that class |
| 107 |
any mention of 'aa' will refer to the same object as 'AA'. |
| 108 |
<BR> |
| 109 |
Never undo this option once it has been used, as it may corrupt |
| 110 |
the integrity of the database. Imagine you have a case-sensitive |
| 111 |
class with two object called 'aa' and 'AA'. If this class was |
| 112 |
now made ce-insensitive, you would have to fuse the two objects |
| 113 |
'aa' and 'AA' into one object, because in the case-insensitive |
| 114 |
class noth names would refer to the same object. |
| 115 |
This can be achieved by hand, if the whole class in dumped, |
| 116 |
then you unset this option and destroy the class in the database |
| 117 |
before reading in the dump file. The parser would then fuse the |
| 118 |
objects as necessary but with unforseen consequences.<P> |
| 119 |
</DD> |
| 120 |
|
| 121 |
<DT>-Known</DT> |
| 122 |
<DD>Prevents indirect creation of new object in ace files |
| 123 |
You can't enter a new object in this class directly |
| 124 |
but not by quoting it in another object.<P> |
| 125 |
</DD> |
| 126 |
|
| 127 |
</DL> |
| 128 |
|
| 129 |
The default options for each user-defined classes are |
| 130 |
<CODE>-Btree -Hidden -Display TREE</CODE>.<P> |
| 131 |
|
| 132 |
Every 'A' class has a special function the program that defined how the |
| 133 |
array elements are to be read from an ace-file and how they are dunped out to an ace-file. These classes are therefor built into the program code |
| 134 |
and probably shouldn't be re-configured.<P> |
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
to <a href="TOC.html">Table of Contents</a><p> |
| 139 |
|
| 140 |
last edited: April 1999<p> |
| 141 |
|
| 142 |
|
| 143 |
</BODY> |