• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dawagner / parameter-framework / 421
75%
master: 78%

Build:
Build:
LAST BUILD BRANCH: integerparam-template
DEFAULT BRANCH: master
Ran 19 Nov 2015 02:43PM UTC
Jobs 1
Files 233
Run time 41s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
421

push

travis-ci

dawagner
Allow ArrayLength attribute in Component tags

Numerical parameters as well as ParameterBlocks can have an "ArrayLength"
attribute that instantiate as many identical parameters or parameter blocks.

This is now also possible for Component instances (not types). When used, a
ParameterBlock is created with the name of the arrayed Component and as many
Components will be created with their names being "0", "1", "2", ...

    *** Use with caution! ***

You shouldn't define any context or instantiation mapping at or below the level
of the "arrayed" component. This also concerns the Component's type (since the
Component will inherit its type's mapping).

In other words, only use "ArrayLength" on components that do not have any
mapping and which content does not have any mapping either.

DO:

<ComponentType Name="MyType">
    <IntegerParameter Name="some_int" Size="8"/>
    <FixedPointParameter Name="some_fp" Size="8" Integral="1" Fractional="6"/>
</ComponentType>
<InstanceDefinition>
    <Component Type="MyType" ArrayLength="2"/>
</InstanceDefinition>

DON'T:

<ComponentType Name="MyType" Mapping="Ctx1:foo" Extends="SomeTypeWithMapping">
    <IntegerParameter Name="some_int" Size="8" Mapping="Instance:1"/>
    <FixedPointParameter Name="some_fp" Size="8" Integral="1" Fractional="6" Mapping="Instance:2"/>
</ComponentType>
<InstanceDefinition>
    <Component Type="MyType" ArrayLength="2" Mapping="Ctx2:bar"/>
</InstanceDefinition>

Signed-off-by: David Wagner <david.wagner@intel.com>

5003 of 6678 relevant lines covered (74.92%)

3735.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 421.1 19 Nov 2015 02:43PM UTC 0
74.92
Travis Job 421.1
Source Files on build 421
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #421
  • 03edc036 on github
  • Prev Build on component-arrays (#391)
  • Next Build on component-arrays (#430)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc