Modeltron-logo-black-transparent-3444x1908.png

Hello!

Welcome to Modeltron, the elements of systems modeling.

Property Redefinition on a «block»

Property Redefinition on a «block»

Property redefinition example

Property redefinition example

In SysML, a «block» may possess Value Properties which may be inherited from another «block». In other words, one «block» may be a subclass of a superclass «block» and inherit properties from the superclass «block». But occasionally it becomes necessary for a property of a subclass «block» to override the property of the superclass «block». This is called property redefinition and we say that the property of the subclass «block» redefines the property of the superclass «block». In the example, the «block», Superclass, possesses a value property called myProperty which is typed as a Real number with a default value of 3.14159. The «block», Subclass, also possesses a property with the same name, but which is typed as an Integer with a default value of 3. In other words, Subclass Block::myProperty redefines Superclass Block::myProperty.

Reference:

Friedenthal, S., Moore, A., & Steiner, R. (2012) A Practical Guide to SysML. Waltham, MA: Morgan Kaufmann. pg. 169

Distributed Properties of a «block»

Distributed Properties of a «block»

Static and Read-only Properties of a «block»

Static and Read-only Properties of a «block»