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 />

6.3.3.18 SaveSwitchCondition<br />

This stereotype represents two elements from SaveCCM domain – connection<br />

pattern and connection condition. In SaveCCM, connection pattern and connection<br />

condition are used to model a switch behaviour. Switch connection pattern<br />

determines two ports that can be connected, while the switch connection condition<br />

defines the terms under which this connection is established. Although they model<br />

the behaviour, these two elements can also be looked upon as a property of a<br />

switch component. Therefore, Save<strong>UML</strong> profile uses Property metaclass as the<br />

base classifier for SaveSwitchCondition stereotype. Each SaveSwitchCondition<br />

element is added to SaveSwitch component as its attribute.<br />

Base classifier: Property<br />

Tagged values:<br />

• SetPort : String. The name of the port used in a condition (this is a part of<br />

connection condition).<br />

• SetPortValue : String. The value of data on set port that needs to arrive for<br />

condition to become true (this is a part of connection condition).<br />

• ConnectFrom : String. The name of the input port that has to be connected to<br />

the port stated in "ConnectTo" tagged value (this is a part of connection<br />

pattern).<br />

• ConnectTo : String. The name of the output port that has to be connected to the<br />

port stated in "ConnectFrom" tagged value (this is a part of connection pattern).<br />

Constraints:<br />

[1] PropertyConnectors: see the SaveAttribute constraint [1].<br />

[2] PropertyNumberOfStereotypes: see the SaveAssembly constraint [6].<br />

[3] SwitchConditionEqualPorts: Ports stated in "SetPort", "ConnectFrom" and<br />

"ConnectTo" tagged values are not allowed to be equal. It is not allowed to connect<br />

a port to itself or to use a set port in connection pattern.<br />

[4] SwitchConditionFrom: Port stated in "ConnectFrom" tagged value must be an input<br />

port of a switch component (a port with a SaveTriggerInPort, SaveDataInPort or<br />

SaveCombinedInPort stereotype applied).<br />

[5] SwitchConditionPorts: Checks if the ports stated in "SetPort", "ConnectFrom" and<br />

"ConnectTo" tagged values exists (checks that the switch component owns the<br />

ports with the stated names).<br />

[6] SwitchConditionSetPort: Only a data or combined input port can be a set port. This<br />

constraint checks that the port stated in "SetPort" tagged value has an appropriate<br />

stereotype applied (SaveDataInport or SaveCombinedInPort stereotype). Also it<br />

checks that the port stated "SetPort" tagged value is marked as a set port (the<br />

"SetPort" tagged value of the port must be set to ‘true’).<br />

59

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

Saved successfully!

Ooh no, something went wrong!