Time Interval Operations

This topic discusses how you select and update specific Time Intervals.

Right-click on the Interval Bar within an interval. A context menu displays providing the following options:

Option

Action

See also

Select Interval

Deselect Interval

Select the Time Interval or, if the interval is already selected, deselect it.

You can select several Time Intervals in this way, accessing the menu separately on each interval.

 

Select Time Intervals

Toggle Interval Selection

Switch the selection or deselection of the Time Interval within the selected Timeline element.

You select or deselect a Time Interval across all Timeline elements, but the Toggle option acts only on the element in which you access the menu.

 

Select Time Intervals

Compress Interval

Compress the Time Interval, and hide all transitions within that Time Interval.

This is also useful for hiding long sections of inactivity on the time line.

 

Compress Timeline

Remove Interval

Delete the Time Interval.

 

 

Copy

Copy the transitions for all selected Time Intervals.

 

 

Cut

Copy and delete the selected transitions from the diagram.

 

 

Cut and Remove Time

Copy and delete the transitions that lie in the selected Time Intervals from the diagram.

This option also removes time from the timeline, the amount being the duration of the Time Interval.

All transitions and Time Intervals to the right of the selected time interval are moved left.

 

 

Delete

Delete the selected transitions from the diagram.

 

 

Delete and Remove Time

Delete the transitions that lie in the selected Time Intervals from the diagram.

This option also removes time from the timeline, the amount being the duration of the Time Interval.

All transitions and Time Intervals to the right of the current Time Interval are moved left.

 

 

Insert Time

Add time to the timeline and move all transitions and time intervals to the right.

Also expand the duration of the current Time Interval.

 

 

Compress Timeline:

The Compression toggle boxes and Compress Interval menu option operate on the Time Interval and compress the timeline and all transitions within the Interval. You have an alternative option that operates on the timeline and compresses a single transition state.

1.Right-click on the timeline (rather than the Interval Bar) just after a transition, and select the Compress context menu option.
2.Enterprise Architect creates a new Time Interval covering the period from the selected transition up to the next transition, and then compresses that Time Interval.

 

If there are other Time Intervals in this period, Enterprise Architect replaces them with the single Time Interval for the transition state. You should consider this when creating and compressing the Time Interval, as it extends across the other Timeline elements in the diagram.

A value of this method is that it creates a Time Interval for a period in which no transitions occur, which could be lengthy, and then compresses this Time Interval to hide the period of inactivity.

All Time Intervals in the Diagram:

To create a new Time Interval or work across all Time Intervals in the diagram, right-click on the Interval Bar between Time Intervals. A context menu displays, providing the following options (The Paste ... menu options become active after transitions have been copied).

Menu Option

Action

See also

Create Time Interval

Create a single Time Interval.

 

Create Time Intervals

Expand all Time Intervals

Expand all Time Intervals over the whole diagram.

 

Compress all Time Intervals

Compress all Time Intervals over the whole diagram.

 

Paste Combine

Paste copied transitions over any existing transitions within the copied time frame.

The diagram does not allow two consecutive transitions to the same state, and removes the second transition automatically.

 

 

Paste Remove

Delete all the transitions and then pastes the copied transition within the copied time frame.

 

 

Paste Insert

Insert time, moving all transitions and Time Intervals to the right to make room to paste in the copied transitions.

 

 

Insert Time

Add time to the timeline and move all transitions and Time Intervals to the right.

This option does not change the duration of any Time Interval.

 

 

 

To copy and paste transitions from one timeline element to another

Step

Action

See also

1

Press and hold ( Shift )  and select the Timeline element within a Time Interval to copy or cut.

 

 

2

Right-click on the Interval Bar (it doesn't matter which element you select).

The context menu displays.

 

 

3

Copy or cut the transitions.

You can also cut and remove time.

 

Copy or cut

4

Select the timeline to paste transitions to and right-click on the Interval Bar.

The context menu displays.

 

 

5

Select one of the paste operations.

Note that states are created if they don't already exist in the timeline.

Any states that don't exist in the Timeline element you are pasting to are created.

Any new states created might be in the wrong order; you can change the order via the diagram quick buttons.

 

Quick Buttons

 

To shift transitions within a selected Time Interval or multiple selected Time Intervals

Step

Action

See also

1

Select all the Time Intervals containing the transitions to be shifted.

 

Select Time Intervals

2

Press and hold ( Shift ) and click on the Interval Bar (it doesn't matter which Timeline element you select), and move the transition left or right.

You cannot drag transitions over other transitions; the move stops when the moved transition collides with a stationary transition.

If you have collision problems, use ( Shift ) + select to shift transitions for a single Timeline element.