Cardinality (Help Page)

From wiki.eclass.eu
Jump to: navigation, search

Contents

[edit] Prerequisites

Cardinality can be set only for properties having the data type “REFERENCE”, dependent on condition properties with data type INTEGER_COUNT


[edit] Set Variable Cardinality

[edit] Step1: Create Dependent Property with Data Type Reference

  • Under menu entry Property, select function Create Property and in the next screen press button “Create Property”. The system opens the Create new property dialog.

CARD1.png

Figure 1: Create new property dialog

  • In the Create new property-dialog, fill in the (mandatory) fields and select “Reference” as data type of new property. In order to set the referenced block, select link “Select referenced block”.

CARD2.png

Figure 2: Select referenced block

  • In the next dialog, select block (SE or CR) to be referenced by the property from the list of blocks or list of change requests for new blocks.
  • As next step, set data type of property to dependent from combo box property type:

CARD3.png

Figure 3: Combo box for selection of property type

  • Press button Save in order to save the CR for new dependent reference property.


[edit] Step 2: Create Condition Property with Data Type Integer Count

  • Under menu entry Property, select function Create Property and in the next screen press button “Create Property”. The system opens the Create new property dialog.

CARD4.png

Figure 4: Create new property dialog

  • In the Create new property-dialog, fill in the (mandatory) fields, select “Integer (count)” as data type of new property and then set data type of property to condition from combo box property type:

CARD5.png

Figure 5: Combo box for selection of property type

  • Press button Save in order to save the CR for new condition property with data type Integer (count).

[edit] Step 3: Assign Dependent Reference Property and Condition Integer Count Property to the Same Class

  • Under menu entry Block, select function Assign Reference of Block. The system opens the hierarchical structure of blocks. Select the block to which you want to assign the dependent reference property and in the next dialog, select the reference property. In the Add existent property dialog, fill in reason field and press save. The CR will be saved.

CARD7.png

Figure 6: Add existing property dialog

  • Under menu entry Block, select function Assign Property. The system opens the hierarchical structure of blocks. Select the block to which you want to assign the condition integer count property (Attention: in order to create a cardinality structure, both dependent and condition property must be used in the same block!!) and in the next dialog, select the condition integer count property. In the Add existent property dialog, fill in reason field and press save. The CR will be saved.

CARD6.png

Figure 7: Add existing property dialog

[edit] Step 4: Set Condition of Dependent Property

Under menu entry property, select function Assign property condition.

  • CARD8.png



Figure 8: Assign property condition

In the next dialog, check check-box Restrict for cardinality so that the system displays only properties which can be used to create cardinality structures (dependent reference properties and in the next screen condition integer count properties) and then select the dependent reference property (dependent reference property created under 3.1).

CARD9.png

Figure 9: Select dependent property dialog

In the next dialog, select a condition property (condition property created under 3.2) for the dependent property. This conditional property has role of controlling property in cardinality.

CARD10.png

Figure 10: Select condition property

In dialog Assign condition to dependent property, enter a reason in the Reason field and press Save.

The structure with variable cardinality will be displayed in the hierarchical structure as follows:

CARD11.png

Figure 11: Display of structure with variable cardinality in the hierarchical structure

[edit] Set Fixed Cardinality

If user wants to set fixed cardinality for a used property, the following preconditions must be fulfilled:

  • The property for which he wants to set fixed cardinality is of type dependent and data type reference and depends on a conditional property of data type INTEGER_COUNT
  • A CVA with desired fixed value is created for conditional property;
  • Both depending and conditional properties must be assigned (used) together in classes.

Thus, he must first create a structure with variable cardinality as described under Chapter 3.

As next step, select menu entry Value, function Create CVA.

CARD12.png

Figure 12: Create CVA

System will display the hierarchical structure or elements. In tree, select the property for which you want to create the CVA (in our case the condition property, which is the controlling property in cardinality).

CARD13.png

Figure 13: Select property for which CVA will be created (condition property)

In the CVA new dialog, enter the desired value in field value, enter a reason and press save.


CARD14.png

Figure 14: Enter CVA value in field value

The fixed cardinality structure will be displayed as follows in the hierarchical structure:

CARD15.png

Figure 15: Display of structure with fixed cardinality in the hierarchical structure[[Image:]]


[edit] Related Information

Personal tools