Skip to content

Ratio interleave of activities or statements #11

@jshook

Description

@jshook

For activities with multiple statements, the current logic uses an assumed interleave of 1 per item. If a statement has a ratio setting, it should be used to calculate an interleave against the total sum of ratio settings. The actual order of statements should be consistent, given a set of statements and ratios. The calculation of the order will be simply determined by dividing each ratio into the unit interval to create relative timings for each statement, then creating a total ordering of all statements in the activity with the major ordering by execution time within the unit interval and a minor ordering by order of appearance within the activity.

As an example: if you take (A:2,B:3), read as A, with ratio 2, and then B with ratio 3, the unit-interval timings for A, B, and then both combined are:

A1:0.33, A2:0.66, A3:1.0
B1:0.5, B2:1.0
A1:0.33, B1:0.5, A2:0.66, A3:1.0, B2:1.0

However, the result for defining B:2 before A3 would be:

A1:0.33, B1.0.5, A2:0.66, B2:1.0, A3:1.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions