Difference between revisions of "PrF UG slots value type boolean"
From Protege Wiki
(Automated import of articles) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== The Boolean Value Type == | == The Boolean Value Type == | ||
− | {{PrF_UG_TOC_slots}}<div id='prf_ug'> | + | <noinclude>{{PrF_UG_TOC_slots}}<div id='prf_ug'></noinclude> |
A <b>Boolean</b> slot holds a logical Boolean value; | A <b>Boolean</b> slot holds a logical Boolean value; | ||
− | that is, | + | that is, a value that is either true or false. |
− | a value that is either true or false. | ||
To set the value type of a slot to <b>Boolean</b>: | To set the value type of a slot to <b>Boolean</b>: | ||
<ol class='a'> | <ol class='a'> | ||
<li><p> | <li><p> | ||
− | [[PrF_UG_slots_create_slot|Create]] | + | [[PrF_UG_slots_create_slot|Create]] the slot, |
− | + | or [[PrF_UG_slots_editing_a_slot|view]] | |
− | or | + | the [[PrF_UG_slots_slot_editor|Slot Editor]] for an existing slot. |
− | |||
− | the | ||
− | |||
− | |||
</p> | </p> | ||
<li><p> | <li><p> | ||
− | Select <b>Boolean</b> from the | + | Select <b>Boolean</b> |
− | + | from the [[PrF_UG_slots_value_type_menu|Value Type menu]]. | |
</p> | </p> | ||
Line 32: | Line 27: | ||
When an instance is created for a class with a Boolean slot, | When an instance is created for a class with a Boolean slot, | ||
− | the instance entry field corresponding to the slot is a | + | the instance entry field corresponding to the slot |
− | [[PrF_UG_inst_entry_field_boolean|Boolean field]] | + | is a [[PrF_UG_inst_entry_field_boolean|Boolean field]] |
and is displayed as a checkbox: | and is displayed as a checkbox: | ||
+ | <div class='b'> | ||
{| summary="checked and unchecked Boolean fields" | {| summary="checked and unchecked Boolean fields" | ||
− | + | | | |
[[Image:PrF_UG_slots_boolean_unchecked.png|slots_boolean_unchecked]] | [[Image:PrF_UG_slots_boolean_unchecked.png|slots_boolean_unchecked]] | ||
| not <b>Urgent</b> | | not <b>Urgent</b> | ||
|- | |- | ||
− | + | | | |
[[Image:PrF_UG_slots_boolean_checked.png|slots_boolean_checked]] | [[Image:PrF_UG_slots_boolean_checked.png|slots_boolean_checked]] | ||
| <b>Urgent</b> | | <b>Urgent</b> | ||
|} | |} | ||
+ | </div> | ||
For example, | For example, | ||
Line 51: | Line 48: | ||
while the <b>M137</b> instance is. | while the <b>M137</b> instance is. | ||
− | </div> | + | |
+ | <noinclude></div></noinclude> |
Latest revision as of 18:54, November 13, 2008
The Boolean Value Type
A Boolean slot holds a logical Boolean value; that is, a value that is either true or false. To set the value type of a slot to Boolean:
Create the slot, or view the Slot Editor for an existing slot.
Select Boolean from the Value Type menu.
The Name of the slot will be used as a label for the checkbox; make sure this is what you want.
When an instance is created for a class with a Boolean slot, the instance entry field corresponding to the slot is a Boolean field and is displayed as a checkbox:
For example, the Personals_Ad class contains the Boolean slot Urgent; the Silly instance of Personals_Ad is not Urgent, while the M137 instance is.