11.02.2014 Views

UML PROFILE FOR SAVECCM - Research

UML PROFILE FOR SAVECCM - Research

UML PROFILE FOR SAVECCM - Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Save<strong>UML</strong> profile<br />

connections. Although <strong>UML</strong> ports are intended to be used through <strong>UML</strong> interfaces<br />

attached to them, they can nevertheless be used without interfaces, i.e. they can<br />

be connected to each other directly which is equivalent to the SaveCCM model.<br />

Considering different types of ports with respect to port direction and type, it<br />

was reasonable to design a separate port stereotype for each direction and type<br />

combination which resulted in altogether six port stereotypes. The rationale for<br />

using <strong>UML</strong> port as the base classifier is the same for all port stereotypes.<br />

Stereotypes differ in their connection possibilities which are specified through<br />

constraints.<br />

This stereotype is used for modelling combined input port.<br />

Base classifier: Port<br />

Tagged values:<br />

• Type : String. A type of data.<br />

• Value : String. Initial value of data (optionally).<br />

• External : String. A label mapping the port to external entity, in case a port is an<br />

external port.<br />

• SetPort : Boolean. Indicates if a port is used in a switch condition. If it is set to<br />

‘true’, then the port is used in a switch condition (a consequence is that a<br />

component that owns this port must be a switch component – component with<br />

SaveSwitch stereotype applied). Default value is set to ‘false’.<br />

Constraints:<br />

[1] NumberOfStereotypes: see the SaveAssembly constraint [6].<br />

[2] OwnerComponentStereotype: This constraint ensures that an owner component<br />

(the component that owns the port) has an appropriate stereotype applied. By<br />

appropriate stereotype it is considered to be one of the stereotypes defined by<br />

Save<strong>UML</strong> profile that are used to model SaveCCM main architectural elements.<br />

[3] PortConnections: As SaveCCM offers only two types of connections (see section<br />

5.3.5), the port can be connected to other port with only two kinds of connectors.<br />

Those two kinds are the ones used by Save<strong>UML</strong> profile for modelling SaveCCM<br />

connections; Usage and Dependency. No other connections are allowed.<br />

[4] PortConnectionStereotype: To ensure that connections used for connecting the<br />

port to other ports have the appropriate stereotype applied, this constraint checks if<br />

the connections have one of two allowed stereotypes; SaveConnection or<br />

SaveDelegation.<br />

[5] PortsExternal: External ports are not allowed internally within a composite<br />

component or assembly. If an "External" tagged value is not empty, then this<br />

constraint checks if the owner component is composite or assembly component<br />

(component with SaveComposite or SaveAssembly stereotype applied).<br />

49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!