Activity Diagram

 

The Activity diagram (and the EFFBD, its cousin in traditional representations) are the most complete representations of behavior. Part of the behavioral (logical architecture) representation set, they unambiguously represent the flow of control through sequencing of activities and constructs as well as the data interactions overlaid to present a more complete picture.

 

The activity diagram is available for entities in the Function class (as well as any other subclasses of ProcessingUnit).

The similarities between activity diagrams and EFFBDs are not coincidental. Not only are they working to address the same fundamental need (a more comprehensive representation of behavior), but the EFFBD notation was used for both guidance and verification by the SysML team during the development of the activity diagram. The net result is closely coupled representations that you can select from to best meet your analytical and communication needs. Activity diagrams classically appeal to the software community given their representational similarity to UML. EFFBDs are often more understandable by customers, domain specialists, and end users.

 

When drawn horizontally, the flow of control is left to right. When drawn vertically, the flow of control is top to bottom. Activity diagrams by default are set to vertical orientation, but that can be modified in the Project Permissions. Rounded rectangles represent functions. Diamonds and bars represent control constructs - the building blocks of behavior. As an activity completes, flow of control proceeds along the branch lines to the next activity or control construct. Each construct has a precise definition that prescribes how control will be passed within the construct and when the construct itself will end. This combination is fully executable (not just animated) by the simulator.

 

GENESYS supports the standard hierarchical features of logical architectures. When the decomposition of an entity has been specified, the icon representing that entity has a decomposition symbol in the upper right corner as a visual cue.

 

The rectangles on an activity diagram represent the items or the data interaction aspect of behavior. Whereas most behavioral representations focus on either the control or the data, the activity diagram and EFFBD represent both to provide full context and understanding. The activity diagram distinguishes between the two primary roles that items play:

 

 

   

NOTE:

Trigger and Input?

It is not necessary to connect an item to a function as both a trigger and an input. It is implicitly understood that a trigger is also an input to the function.

 

Understanding whether an item is local in scope or used beyond the bounds of a given activity can provide valuable insight when engineering and assessing a system. To help visualize this, boundary items – those items which are input to, output from, or trigger a function beyond the scope of the current activity and its decomposition – can be optionally constrained to the diagram frame. When this option is selected in the diagram properties, the difference between local items (drawn in the interior of the diagram) and items used elsewhere in the system model (drawn on the diagram frame) is immediately evident. By default, this option is enabled for new activity diagrams, delivering the maximum insight from the item positioning. A function begins execution when it has received all of its triggers and its necessary resources have been acquired. If the flow of control has reached a function but either the triggers or resources are not available, the function is said to be enabled but waiting. Obviously, this has notable impacts in the sequencing and synchronization of behavior as well as the overall performance (how quickly the process completes) and whether or not it can complete at all due to live-locks and deadlocks.

 

     

NOTE:

A good reference for further information on activity diagrams is chapter 9 of A Practical Guide to SysML: The Systems Modeling Language by Sanford Friedenthal, Alan Moore, and Rick Steiner (2012).

Toolbox Properties

In addition to the classic diagram options, the activity diagram settings include:

Toolbox Insert

The Constructs, Utilities, and Key Entities tabs allow you to quickly develop your activity diagram, while the All Entities tab enables you to relate your diagram entities to the remainder of your system definition.

 

Constructs

 Utilities

Key Entities

 All Entities

     All classes and entities in the system model, allowing you to drag any entity on top of a diagram node to establish relationships with the balance of your system model

Context Menu Commands

 

Depending on what is selected on the diagram, the following options may be available:

 

Tips and Tricks