Patterns Values XML File

Purpose

The patterns values XML file is used to define the patterns of components. The valid values for a pattern can be striped-diag-up, radial-grad, Big-X or a reference (#xxxx) to a pattern specified in a Shapes XML file.

The following figure shows the various predefined patterns:


For information about how to define new values for patterns, see Customizing the System Model Presentation.

Syntax

<?xml version="1.0"?>
    <values default="default-pattern-value" label="label for legend">
    
        <item label="label for legend" value="pattern-value">    
                <component name="component-name"/>
                <component name="component-name"/>
                <component name="component-name"/>
                …

        </item>

        <item …>
        …
        </item>
        …
    </values>

In the preceding syntax, the values tag contains the item tags. The various attributes under the values tag are:

  • default="default-pattern-value": Defines the default pattern for the components. This default value gets assigned to the components to which no pattern value is assigned.

  • label="label for legend": Defines the label for the legend.

Each item tag can contain the following attributes:

  • label="label for legend": Defines the label for the legend.

  • value="pattern-value": Defines the pattern value for the item. This pattern value gets assigned to all the components listed in that item tag.

The item tag also contains component tags to specify the components in the item. All the components defined in an item tag have the same pattern. The following is the syntax to define a component:

<component name="component-name"/>

Where component-name indicates the name of the component defined in the system definition file.

Example

<?xml version="1.0"?>
<values>
    <item label="Reference Compo#xad;nent" value="striped-diag-up">
            <component name="OMAP 1623"/>
            <component name="SD Card Driver"/>
            …
    </item>
    <item label="New in 9.4" value="radial-grad">
            <component name="Wireless LAN"/>
            <component name="Graphics Effects"/>
    </item>

    <item label="Depre&#ad;cated" value="#my-pattern">
            <component name="Word Engine"/>
    </item>
</values>

The following figure shows the generated legend for the preceding patterns values XML: