Below are configuration examples for the Coverage (Mapping Item) view using StructureTree, Grid and ContextTree. 


Note: The following 3 columns are required in both the left and right side configurations:

   <MappedToIndicatorColumn/>

   <MappedStatusColumn/>

   <MappedToColumn/>


Each column should be included only once in the left side and in the right side, and in any order. However, the order shown above is recommended, or having them as the first 3 columns in any order because they hold the most important information.


The examples in this article utilize the following data and meta model. An XML containing the data and meta model is attached to the article.


Example Meta Model


StructureTree 

There are two options for the StructureTree type - ShowSids and ViewName.

ShowSids 

Example Configuration

    <CoverageMappingItemConfig id= "unique_idd1"> 
        <ViewSettings>
            <Caption>Requirement mapping (StructureTree_ShowSid)</Caption>
            <RibbonGroup>Mapping</RibbonGroup>
            <Description>hist shown in the ribbon</Description>
            <Image guiImage="72"/>
        </ViewSettings>
        <TopItem itemType="BIDM"/>
        <LeftStructureTreeEditableParts partTypes="IBRA;3SBH"/>
        <RightStructureTreeEditableParts partTypes="IXRQ;IXRR"/>
        <FaultyMappingsBorder visible="True" />
        <Mappings>
            <PathFromMainToMappingContainer select="/DEPA/AIML" />
            <MappingItem itemType="BIRM" partType="IRMM" />
            <LeftMapping itemType="CRES" partType="EXRE" />
            <LeftMapping itemType="RERQ" partType="EXRM" />
            <RightMapping itemType="RRQ2" partType="INRM" />
            <RightMapping itemType="RRX" partType="INRX" />
        </Mappings>
    
        <LeftSide>
            <StructureTree>
                <Columns>
                    <MappedToIndicatorColumn/>
                    <ItemNameColumn  width="250"/>
                    <MappedStatusColumn/>
                    <MappedToColumn/>
                    <ItemStatusColumn/>
                    <ItemAttributeColumn type="ABAN" width="100" caption="Annotation"/> 
                </Columns>
                <ShouldShowSids>FUPA;REDC;IBRA;3SBH</ShouldShowSids>
                <ExpandLevel>5</ExpandLevel>
            </StructureTree> 
        </LeftSide>
    
        <RightSide>
            <StructureTree>
                <Columns>
                    <MappedToIndicatorColumn/>
                    <ItemNameColumn width="250"/>
                    <MappedStatusColumn/>
                    <MappedToColumn/>
                    <ItemStatusColumn/> 
                    <ItemAttributeColumn type="ABAN" width="100" caption="Annotation"/>                                        
                </Columns>
                <ShouldShowSids>DEPA;DEDS;IXRQ;IXRR""</ShouldShowSids>
                <ExpandLevel>5</ExpandLevel>
            </StructureTree>
        </RightSide>
    
        <ShowStructure>
            <Visible>True</Visible>
            <ContextGroup>main</ContextGroup>
            <ShouldShowPartTypes>
                <PartType>FUPA</PartType>
                <PartType>REDC</PartType>
                <PartType>IBRA</PartType>
                <PartType>3SBH</PartType>
            </ShouldShowPartTypes>
        </ShowStructure>

        <UIMessages>
            <UIMessageLeftItemName>Function requirement</UIMessageLeftItemName>
            <UIMessageRightItemName>Design requirement</UIMessageRightItemName>
            <UIMessageNotMapped>Not mapped</UIMessageNotMapped>
            <UIMessageNotInLeft>Not in Function requirement</UIMessageNotInLeft>
            <UIMessageNotInRight>Not in Design requirement</UIMessageNotInRight>
            <UIMessageVersionInconsistency>!Version</UIMessageVersionInconsistency>
        </UIMessages>
    </CoverageMappingItemConfig>

Example Result

ViewName

Example Configuration

 <CoverageMappingItemConfigs> 
 <CoverageMappingItemConfig id= "unique_idd11">
    <ViewSettings>
        <Caption>Requirement mapping (StructureTree_ViewName)</Caption>
        <RibbonGroup>Mapping</RibbonGroup>
        <Description>hist shown in the ribbon</Description>
        <Image guiImage="72"/>
    </ViewSettings>
    <TopItem itemType="BIDM"/>
    <LeftStructureTreeEditableParts partTypes="IBRA;3SBH"/>
    <RightStructureTreeEditableParts partTypes="IXRQ;IXRR"/>
    <FaultyMappingsBorder visible="True" />
    <Mappings>
        <PathFromMainToMappingContainer select="/DEPA/AIML" />
        <MappingItem itemType="BIRM" partType="IRMM" />
        <LeftMapping itemType="CRES" partType="EXRE" />
        <LeftMapping itemType="RERQ" partType="EXRM" />
        <RightMapping itemType="RRQ2" partType="INRM" />
        <RightMapping itemType="RRX" partType="INRX" />
    </Mappings>
    <LeftSide>
        <StructureTree>
            <Columns>
                <MappedToIndicatorColumn/>
                <ItemNameColumn  width="250"/>
                <MappedStatusColumn/>
                <MappedToColumn/>
                <ItemStatusColumn/>
                <ItemAttributeColumn type="ABAN" width="100" caption="Annotation"/> 
            </Columns>
            <ViewName>Function_Requirement</ViewName>
            <TopItemPath>/FUPA</TopItemPath>
            <ExpandLevel>2</ExpandLevel>
        </StructureTree>
    </LeftSide>
    <RightSide>
        <StructureTree>
            <Columns>
                <MappedToIndicatorColumn/>
                <ItemNameColumn width="250"/>
                <MappedStatusColumn/>
                <MappedToColumn/>
                <ItemStatusColumn/> 
                <ItemAttributeColumn type="ABAN" width="100" caption="Annotation"/>                                        
            </Columns>
            <ViewName>Design_Requirement</ViewName>
            <TopItemPath>/DEPA</TopItemPath>
            <ExpandLevel>2</ExpandLevel> 
        </StructureTree>
    </RightSide>

    <ShowStructure>
        <Visible>True</Visible>
        <ContextGroup>main</ContextGroup>
        <ShouldShowPartTypes>
            <PartType>FUPA</PartType>
            <PartType>REDC</PartType>
            <PartType>IBRA</PartType>
            <PartType>3SBH</PartType>
        </ShouldShowPartTypes>
    </ShowStructure>

    <UIMessages>
        <UIMessageLeftItemName>Function requirement</UIMessageLeftItemName>
        <UIMessageRightItemName>Design requirement</UIMessageRightItemName>
        <UIMessageNotMapped>Not mapped</UIMessageNotMapped>
        <UIMessageNotInLeft>Not in Function requirement</UIMessageNotInLeft>
        <UIMessageNotInRight>Not in Design requirement</UIMessageNotInRight>
        <UIMessageVersionInconsistency>!Version</UIMessageVersionInconsistency>
    </UIMessages>
</CoverageMappingItemConfig>
</CoverageMappingItemConfigs>


Example Result


Grid

Example Configuration

<CoverageMappingItemConfigs> 
  <CoverageMappingItemConfig id= "unique_idd2">
    <ViewSettings>
      <Caption>Requirement mapping (Grid)</Caption>
      <RibbonGroup>Mapping</RibbonGroup>
      <Description>hist shown in the ribbon</Description>
      <Image guiImage="72"/>
    </ViewSettings>
    <TopItem itemType="BIDM"/>
    <LeftStructureTreeEditableParts partTypes="IBRA;3SBH"/>
    <RightStructureTreeEditableParts partTypes="IXRQ;IXRR"/>
    <FaultyMappingsBorder visible="True" />
    <Mappings>
      <PathFromMainToMappingContainer select="/DEPA/AIML" />
      <MappingItem itemType="BIRM" partType="IRMM" />
      <LeftMapping itemType="CRES" partType="EXRE" />
      <LeftMapping itemType="RERQ" partType="EXRM" />
      <RightMapping itemType="RRQ2" partType="INRM" />
      <RightMapping itemType="RRX" partType="INRX" />
    </Mappings>

    <LeftSide>
      <Grid>
        <Options>
          <Grouping groupBy="1,2"/>
        </Options>
        <Columns>
          <ItemNameColumn  width="250" objectName="Function" caption="Function"/>
          <ItemNameColumn  width="250" objectName="FunctionContainer" caption="Function Container"/> 
          <MappedToIndicatorColumn objectName="LeftRequirement" />
          <ItemNameColumn  width="250" objectName="LeftRequirement" caption="Function Requirement" icon="true"/>                   
          <MappedStatusColumn/>
          <MappedToColumn/>
          <ItemStatusColumn objectName="LeftRequirement"/>
          <ItemAttributeColumn type="ABAN" width="100" caption="Annotation" objectName="LeftRequirement" readOnly="false"/> 
        </Columns>
        <ForEach select="/FUPA"> 
          <RowObject name="Function"> 
            <ForEach select="/REDC"> 
              <RowObject name="FunctionContainer"> 
                <ForEach select="/IBRA union /3SBH"> 
                  <RowObject name="LeftRequirement"> 
                    <Row/> 
                  </RowObject>
                </ForEach>
              </RowObject>
            </ForEach> 
          </RowObject>
        </ForEach>
      </Grid>
    </LeftSide>

    <RightSide>
      <Grid>
        <Options>
          <Grouping groupBy="1,2"/>
        </Options>
        <Columns>                 
          <ItemNameColumn  width="250" objectName="Design" caption="Design"/>
          <ItemNameColumn  width="250" objectName="DesignContainer" caption="Design Container"/>
          <MappedToIndicatorColumn objectName="RightRequirement"/> 
          <ItemNameColumn  width="250" objectName="RightRequirement" caption="Design Requirement" icon="true"/>                   
          <MappedStatusColumn/>
          <MappedToColumn/>
          <ItemStatusColumn objectName="RightRequirement"/>
          <ItemAttributeColumn type="ABAN" width="100" caption="Annotation" objectName="RightRequirement" readOnly="false"/> 
        </Columns>
        <ForEach select="/DEPA"> 
          <RowObject name="Design"> 
            <ForEach select="/DEDS"> 
              <RowObject name="DesignContainer"> 
                <ForEach select="/IXRQ union /IXRR"> 
                  <RowObject name="RightRequirement"> 
                    <Row/> 
                  </RowObject>
                </ForEach>
              </RowObject>
            </ForEach> 
          </RowObject>
        </ForEach>
      </Grid>
    </RightSide>

    <ShowStructure>
      <Visible>True</Visible>
      <ContextGroup>main</ContextGroup>
      <ShouldShowPartTypes>
        <PartType>FUPA</PartType>
        <PartType>REDC</PartType>
        <PartType>IBRA</PartType>
        <PartType>3SBH</PartType>
      </ShouldShowPartTypes>
    </ShowStructure>

    <UIMessages>
      <UIMessageLeftItemName>Function requirement</UIMessageLeftItemName>
      <UIMessageRightItemName>Design requirement</UIMessageRightItemName>
      <UIMessageNotMapped>Not mapped</UIMessageNotMapped>
      <UIMessageNotInLeft>Not in Function requirement</UIMessageNotInLeft>
      <UIMessageNotInRight>Not in Design requirement</UIMessageNotInRight>
      <UIMessageVersionInconsistency>!Version</UIMessageVersionInconsistency>
    </UIMessages>
  </CoverageMappingItemConfig>
</CoverageMappingItemConfigs>


Example Result


ContextTree

Example Configuration

<CoverageMappingItemConfigs> 
  <CoverageMappingItemConfig id= "unique_idd3">
        <ViewSettings>
            <Caption>Requirement mapping (ContextTree)</Caption>
            <RibbonGroup>Mapping</RibbonGroup>
            <Description>hist shown in the ribbon</Description>
            <Image guiImage="72"/>
        </ViewSettings>
        <TopItem itemType="BIDM"/>
        <LeftStructureTreeEditableParts partTypes="IBRA;3SBH"/>
        <RightStructureTreeEditableParts partTypes="IXRQ;IXRR"/>
        <FaultyMappingsBorder visible="True" />
        <Mappings>
            <PathFromMainToMappingContainer select="/DEPA/AIML" />
            <MappingItem itemType="BIRM" partType="IRMM" />
            <LeftMapping itemType="CRES" partType="EXRE" />
            <LeftMapping itemType="RERQ" partType="EXRM" />
            <RightMapping itemType="RRQ2" partType="INRM" />
            <RightMapping itemType="RRX" partType="INRX" />
        </Mappings>
        <LeftSide>
            <ContextTree>
                <Columns>
                    <MappedToIndicatorColumn/>
                    <ItemNameColumn/>
                    <MappedStatusColumn/>
                    <MappedToColumn/>
                    <ItemStatusColumn/>
                    <ItemAttributeColumn type="ABAN" width="100"/> 
                </Columns>

                <Context>
                    <AddParts owner="main" sid="FUPA" part="Functions" defobj="Function"/>
                    <AddParts owner="Function" sid="REDC" part="FunctionContainers" defobj="FunctionContainer"/>
                    <AddParts owner="FunctionContainer" sid="IBRA" part="LeftRequirements" defobj="LeftRequirement"/>
                    <AddParts owner="FunctionContainer" sid="3SBH" part="LeftRequirements" defobj="+LeftRequirement"/>
                </Context>
                <Tree startGroup="main">
                    <Case group="main" go="/Functions"/>
                    <Case group="Function" go="/FunctionContainers"/>
                    <Case group="FunctionContainer" go="/LeftRequirements"/>
                </Tree>
            </ContextTree>
        </LeftSide>
    
        <RightSide>
            <ContextTree>
                <Columns>
                    <MappedToIndicatorColumn/>
                    <ItemNameColumn/>
                    <MappedStatusColumn/>
                    <MappedToColumn/>
                    <ItemStatusColumn/>
                    <ItemAttributeColumn type="ABAN" width="100"/> 
                </Columns>

                <Context>
                    <AddParts owner="main" sid="DEPA" part="Designs" defobj="Design"/>
                    <AddParts owner="Design" sid="DEDS" part="DesignContainers" defobj="DesignContainer"/>
                    <AddParts owner="DesignContainer" sid="IXRQ" part="RightRequirements" defobj="RightRequirement"/>
                    <AddParts owner="DesignContainer" sid="IXRR" part="RightRequirements" defobj="+RightRequirement"/>
                </Context>
                <Tree startGroup="main">
                    <Case group="main" go="/Designs"/>
                    <Case group="Design" go="/DesignContainers"/>
                    <Case group="DesignContainer" go="/RightRequirements"/>
                </Tree>
            </ContextTree>
        </RightSide>

        <ShowStructure>
            <Visible>True</Visible>
            <ContextGroup>main</ContextGroup>
            <ShouldShowPartTypes>
                <PartType>FUPA</PartType>
                <PartType>REDC</PartType>
                <PartType>IBRA</PartType>
                <PartType>3SBH</PartType>
            </ShouldShowPartTypes>
        </ShowStructure>

        <UIMessages>
            <UIMessageLeftItemName>Function requirement</UIMessageLeftItemName>
            <UIMessageRightItemName>Design requirement</UIMessageRightItemName>
            <UIMessageNotMapped>Not mapped</UIMessageNotMapped>
            <UIMessageNotInLeft>Not in Function requirement</UIMessageNotInLeft>
            <UIMessageNotInRight>Not in Design requirement</UIMessageNotInRight>
            <UIMessageVersionInconsistency>!Version</UIMessageVersionInconsistency>
        </UIMessages>
    </CoverageMappingItemConfig>
</CoverageMappingItemConfigs>


Example Result