Difference between revisions of "PrF UG inst add class type"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 4: Line 4:
 
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
 
{{PrF_UG_TOC_inst}}<div id='prf_ug'>
  
The
+
The [[PrF_UG_inst_types_pane|Types Pane]],
[[PrF_UG_inst_types_pane|Types Pane]],
+
in the [[PrF_UG_inst_instance_browser|Instance Browser]],
in the
 
[[PrF_UG_inst_instance_browser|Instance Browser]],
 
 
allows you to add and remove <i>types</i> for an instance;
 
allows you to add and remove <i>types</i> for an instance;
that is,
+
that is, the classes for which the selected instance is a direct instance.
the classes for which the selected instance is a direct instance.
+
Assigning multiple types to an instance allows you to build an instance
Assigning multiple types to an instance allows you to build an instance which combines field characteristics from two or more classes.
+
which combines field characteristics from two or more classes.
  
 
=== Adding a Type ===
 
=== Adding a Type ===
Line 24: Line 22:
 
     The classes where this instance is direct will be shown in the Types Pane,
 
     The classes where this instance is direct will be shown in the Types Pane,
 
     at the bottom of the Instance Browser.
 
     at the bottom of the Instance Browser.
   
 
    </p><p> <div>[[Image:PrF_UG_inst_types_pane.png|instances_types_pane]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_types_pane.png|instances_types_pane]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>Add Class</b>
 
     Click the <b>Add Class</b>
     [[Image:PrF_UG_classes_class.add.gif|classes_class.add]]
+
     [[Image:PrF_UG_classes_class.add.gif|classes_class.add]] button
     button at the top of the Types Pane.
+
     at the top of the Types Pane.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     In the <b>Select Classes</b> dialog box,
+
     In the <b>Select Classes</b> dialog box, select the additional class(es)
    select the additional class(es) where this instance will be a direct instance and click <b>OK</b>.
+
    where this instance will be a direct instance and click <b>OK</b>.
   
 
    </p><p> <div>[[Image:PrF_UG_inst_select_types.png|instances_select_types]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_select_types.png|instances_select_types]]</div>
  
 
   <li><p>
 
   <li><p>
Line 46: Line 42:
 
     one for each class type.
 
     one for each class type.
 
     Any shared fields will contain identical values.
 
     Any shared fields will contain identical values.
     Editing a field value in one form edits the same field in all the forms where it appears.
+
     Editing a field value in one form edits the same field
   
+
    in all the forms where it appears.
    </p><p> <div>[[Image:PrF_UG_inst_instance_editor_multi_types_small.png|instances_instance_editor_multi_types_small]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_instance_editor_multi_types_small.png|instances_instance_editor_multi_types_small]]</div>
 
</ol>
 
</ol>
  
 
=== Deleting a Type ===
 
=== Deleting a Type ===
  
For a multi-type instance,
+
For a multi-type instance, you can delete types.
you can delete types.
 
 
To do this:
 
To do this:
  
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     At the
+
     At the [[PrF_UG_inst_instances_tab|Instances Tab]],
    [[PrF_UG_inst_instances_tab|Instances Tab]],
 
 
     select the class and instance you want.
 
     select the class and instance you want.
     The classes where this instance is direct will be shown in the Types Pane at the bottom of the Instance Browser.
+
     The classes where this instance is direct
 +
    will be shown in the Types Pane at the bottom of the Instance Browser.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>Delete Class</b>
 
     Click the <b>Delete Class</b>
     [[Image:PrF_UG_classes_class.remove.gif|classes_class.remove]]
+
     [[Image:PrF_UG_classes_class.remove.gif|classes_class.remove]] button
     button at the top of the Types Pane.
+
     at the top of the Types Pane.
 
     </p>
 
     </p>
 
</ol>
 
</ol>
Line 90: Line 85:
 
     To display forms one below another in a single window (the default),
 
     To display forms one below another in a single window (the default),
 
     make sure this option is deselected.
 
     make sure this option is deselected.
   
 
    </p><p> <div>[[Image:PrF_UG_inst_configure_multi-type_instances.png|instances_configure_multi-type_instances]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_configure_multi-type_instances.png|instances_configure_multi-type_instances]]</div>
  
 
   <li><p>
 
   <li><p>
 
     If the current instance is multi-type,
 
     If the current instance is multi-type,
 
     you may need to click on another instance and then back on this instance to see the change.
 
     you may need to click on another instance and then back on this instance to see the change.
   
 
    </p><p> <div>[[Image:PrF_UG_inst_multi_types_tabbed.png|instances_multi_types_tabbed]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_inst_multi_types_tabbed.png|instances_multi_types_tabbed]]</div>
 
</ol>
 
</ol>
  
  
 
</div>
 
</div>

Revision as of 15:47, October 15, 2008

Working with Instance Types


Protege-Frames User's Guide
Instances
Instances Tab
Class Browser at Instances Tab
Instance Browser
Instances Window
Instance Buttons
Instance Menu
Types Pane
Instance Editor
Standard Field Types
Fields with Multiple Cardinality
Boolean Fields
Class Fields
Float Fields
Instance Fields
Integer Fields
String Fields
Symbol Fields
Creating an Instance
Creating Multiple Instances
Displaying the Instance Editor
Setting the Display Slot
Showing Subclass Instances
Editing an Instance
Copying an Instance
Deleting an Instance
Finding an Instance
Changing an Instance's Class
Working with Instance Types
Instance Icons
Glossary, Editing Help

The Types Pane, in the Instance Browser, allows you to add and remove types for an instance; that is, the classes for which the selected instance is a direct instance. Assigning multiple types to an instance allows you to build an instance which combines field characteristics from two or more classes.

Adding a Type

To add a class type to an instance:

  1. At the Instances Tab, select the class and instance you want. The classes where this instance is direct will be shown in the Types Pane, at the bottom of the Instance Browser.

    instances_types_pane
  2. Click the Add Class classes_class.add button at the top of the Types Pane.

  3. In the Select Classes dialog box, select the additional class(es) where this instance will be a direct instance and click OK.

    instances_select_types
  4. The class(es) are added to the direct superclasses of the instance. The Instance Editor will change to display multiple forms, one for each class type. Any shared fields will contain identical values. Editing a field value in one form edits the same field in all the forms where it appears.

    instances_instance_editor_multi_types_small

Deleting a Type

For a multi-type instance, you can delete types. To do this:

  1. At the Instances Tab, select the class and instance you want. The classes where this instance is direct will be shown in the Types Pane at the bottom of the Instance Browser.

  2. Click the Delete Class classes_class.remove button at the top of the Types Pane.

Configuring the Instance Editor

You can choose how to display multi-type instances in the Instance Editor. Forms can be displayed one below the other on a single screen, or they can be displayed in a tabbed format. To configure the display for multi-type instances:

  1. Select Project | Configure from the menu.

  2. To display forms in separate tabs, make sure that Use Tabbed Forms for Multi-type Instances is selected. To display forms one below another in a single window (the default), make sure this option is deselected.

    instances_configure_multi-type_instances
  3. If the current instance is multi-type, you may need to click on another instance and then back on this instance to see the change.

    instances_multi_types_tabbed