Difference between revisions of "PrF UG slots value type integer"

From Protege Wiki

Jump to: navigation, search
(Automated import of articles)
 
Line 4: Line 4:
 
{{PrF_UG_TOC_slots}}<div id='prf_ug'>
 
{{PrF_UG_TOC_slots}}<div id='prf_ug'>
  
An <b>Integer</b> slot holds an integer number value. (Recall that integer numbers are whole numbers that are positive,
+
An <b>Integer</b> slot holds an integer number value.
negative,
+
(Recall that integer numbers are whole numbers
or zero;
+
that are positive, negative, or zero; they cannot include a decimal point.
they cannot include a decimal point.
+
 
Values of type <b>Integer</b> are stored programmatically on your system as integer values.)
 
Values of type <b>Integer</b> are stored programmatically on your system as integer values.)
  
Line 14: Line 13:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     [[PrF_UG_slots_create_slot|Create]]
+
     [[PrF_UG_slots_create_slot|Create]] the slot,
    the slot,
+
     or [[PrF_UG_slots_editing_a_slot|view]]
     or
+
     the [[PrF_UG_slots_slot_editor|Slot Editor]] for an existing slot.
    [[PrF_UG_slots_editing_a_slot|view]]
+
     the
+
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
    for an existing slot.
+
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     Select <b>Integer</b> from the
+
     Select <b>Integer</b>
     [[PrF_UG_slots_value_type_menu|Value Type menu]].
+
     from the [[PrF_UG_slots_value_type_menu|Value Type menu]].
 
     </p>
 
     </p>
  
Line 41: Line 36:
 
     When an instance is created for a class with this slot,
 
     When an instance is created for a class with this slot,
 
     the value of the slot must be greater than or equal to the minimum.
 
     the value of the slot must be greater than or equal to the minimum.
     For example,
+
     For example, a minimum of zero means instances cannot have negative values.
    a minimum of zero means instances cannot have negative values.
+
 
     </p>
 
     </p>
  
Line 52: Line 46:
  
 
   <li><p>
 
   <li><p>
     Together,
+
     Together, <b>Minimum</b> and <b>Maximum</b> can be used
    <b>Minimum</b> and <b>Maximum</b> can be used to define an allowable range.
+
    to define an allowable range.
 
     </p>
 
     </p>
 
</ul>
 
</ul>
  
When present,
+
When present, the <b>Minimum</b> and/or <b>Maximum</b> values
the <b>Minimum</b> and/or <b>Maximum</b> values are displayed in the last column of the
+
are displayed in the last column
[[PrF_UG_classes_template_slot_pane|Template Slots pane]].
+
of the [[PrF_UG_classes_template_slot_pane|Template Slots pane]].
 +
 
  
 
</div>
 
</div>

Revision as of 11:10, October 17, 2008

The Integer Value Type


Protege-Frames User's Guide
Slots
The Slots Tab
The Slot Browser
The Slot Buttons
The Slot Menu
The Slot Editor
The Value Type Menu
The Any Value Type
The Boolean Value Type
The Class Value Type
The Float Value Type
The Instance Value Type
The Integer Value Type
The String Value Type
The Symbol Value Type
Creating a New Slot
Viewing a Slot
Editing a Top-Level Slot
Overriding Slot Properties at a Class
Editing Slot Properties
Removing a Slot from a Class
Deleting a Slot from the Project
Adding a Slot to a Class
Removing Overrides From a Slot
Understanding Inverse Slots
Creating an Inverse Slot Relationship
Working with Subslots
Finding a Slot
The Slot Hierarchy Window
The Slot Icons
The Superslots Pane
Glossary, Editing Help

An Integer slot holds an integer number value. (Recall that integer numbers are whole numbers that are positive, negative, or zero; they cannot include a decimal point. Values of type Integer are stored programmatically on your system as integer values.)

To set the value type of a slot to Integer:

  1. Create the slot, or view the Slot Editor for an existing slot.

  2. Select Integer from the Value Type menu.

  3. Fill in the other facets of the slot as desired.

For slots of type Integer, you can enter a Minimum and/or Maximum value.

  • Minimum allows you to specify a minimum value for your slot. When an instance is created for a class with this slot, the value of the slot must be greater than or equal to the minimum. For example, a minimum of zero means instances cannot have negative values.

  • Maximum allows you to specify a maximum value for your slot. When an instance is created for a class with this slot, the value of the slot must be less than or equal to the maximum.

  • Together, Minimum and Maximum can be used to define an allowable range.

When present, the Minimum and/or Maximum values are displayed in the last column of the Template Slots pane.


Personal tools