主要内容

addTag

R2026b

Create tag in activity diagram

Since R2026b

    Description

    tag = addTag(activity,tagName) creates a tag with the name specified by tagName in the activity specified by activity. Use tags to associate send action nodes with accept action nodes for token transfer without explicit object flows.

    Input Arguments

    collapse all

    Activity, specified as a systemcomposer.activity.Activity object.

    Name of the tag, specified as a character vector. Send and accept action nodes that have the same tag are paired for token transfer.

    Example: 'structChannel'

    Data Types: char

    Output Arguments

    collapse all

    Tag, returned as a systemcomposer.activity.Tag object. Set the ObjectType property of the tag to specify the data type of tokens transferred between paired send and accept action nodes.

    More About

    collapse all

    Version History

    Introduced in R2026b