====== Index list ====== Index lists are used to create vector or matrix [[Block|blocks]]. An index list contains a set of (named) indices. New index lists can be created - for example “Organisms” or “Locations” - or the built in index lists can be used. The most used index list is the Materials index list (see below). ===== Built-in index lists ===== * **Materials** - this index list is automatically synchronized with the list of [[Material|materials]] in the model and is used to for blocks with a material dependence. This list can be used for all [[Block|blocks]]. * **Radionuclides** - a [[Sub-set_index_list|sub-set]] of the materials index list, which only has indices for [[Material|radionuclides]] of the model. This list can be used for all [[Block|blocks]]. * **Elements** - a [[Mapped_index_list|mapped index list]], which has indices for each atomic element of the [[Material|radionuclides]] in the model. This list can be used for all [[Block|blocks]]. * **Compartments** - a [[Mapped_index_list|mapped index list]], which has indices for each [[Compartment|compartment]] of the model. This list can be used as indices for [[Parameter|parameters]], [[Expression|expressions]], [[Index_operation|index operations]] and [[Lookup_table|lookup tables]] whose values are [[Compartment|compartment]] dependent. * **Transfers** - a [[Mapped_index_list|mapped index list]], which has indices for each [[Transfer|transfer]] of the model. This list can be used as indices for [[Parameter|parameters]], [[Expression|expressions]], [[Index_operation|index operations]] and [[Lookup_table|lookup tables]] whose values are [[Transfer|transfer]] dependent. ==== Index ==== An index is the atomic part of an [[Index_list|index list]]. Rather than using numbers for indices, Ecolego uses string values which are enumerated using [[Index_list|index lists]]. ===== Index lists of transfers ===== You cannot specify an index list for a [[Transfer|transfer]]. The index list is automatically created to be a sub-set of the //Materials// index list that contains the intersection of the source and target [[Compartment|compartment's]] indexlists. ===== Creating an index list ===== Index lists are created in the [[Index_lists_window|Index lists window]]. To create a * Normal index list - either click the {{:New24.png|New}} button in the [[windows#Title_bar|title bar]] or right click and select **New | Index list** from the popup-menu. * [[Sub-set_index_list|Sub-set index list]] - right click the “super” index list and select **New | Sub set** from the popup-menu. * [[Mapped_index_list|Mapped index list]] - create a normal index list as described above and edit the index list to specify mappings. ===== Editing an index list ===== The index list editor is shown by right-clicking the index list in the [[Index_lists_window|Index lists window]] and selecting **Edit**. The index list editor has three tabs: Properties, Values and Mapping. {{ :edit_index_list_values.png|Screenshot}} ==== Properties ==== This page is very similar for all types of Ecolego objects. See [[Editing_properties|editing properties]] for more information. ==== Values ==== The values panel let you add and remove indices to your index list. The window differs slightly depending on if the index list is a sub-set of another index list or not. * Normal index lists - Add indices by clicking the **Add** button. Remove indices by selecting them in the table and clicking the **Remove** button. * Sub sets - The table presents a list of all indices in the parent index list. Use the check buttons to select which of these indices to include in the sub set. ==== Mapping ==== {{ :edit_index_list_mapping.png|Screenshot}} The mapping page is only available for non-sub sets and lets you define mappings of the edited index list to another index list in the model. Select the index list you wish to map to from the drop down list. For each index of the target index list, select which of the indices in the edited index list to map to by clicking in the field next to the index. ===== See also ===== * [[Index_lists_window|Index lists window]] * [[Mapped_index_list|Mapped index lists]] * [[Sub-set_index_list|Index list sub-sets]] * [[Tutorial_3-Using_index_lists|Tutorial 3-Using index lists]] * [[Index_list|Index list]] * [[Naming_conventions|Naming conventions]]