Contenido principal

getExtendedElement

Get extended element type of stereotype

    Description

    elementType = getExtendedElement(stereotype) gets the element type to which the stereotype stereotype applies, using the base stereotype to resolve the element type if necessary.

    example

    Examples

    collapse all

    Create a profile for latency characteristics.

    profile = systemcomposer.profile.Profile.createProfile("LatencyProfile");
    latencybase  = addStereotype(profile,"LatencyBase",AppliesTo="Component");
    latencyderived = addStereotype(profile,"LatencyDerived",Parent=latencybase);
    

    Get the extended element for the stereotype LatencyDerived in the profile.

    derived = getStereotype(profile,"LatencyDerived");
    extendedElement = getExtendedElement(derived)
    
    extendedElement =
    
        'Component'
    

    Input Arguments

    collapse all

    Stereotype, specified as a systemcomposer.profile.Stereotype object.

    Output Arguments

    collapse all

    Element type, specified as:

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2019b