arguments - Specifying custom type for an attribute of a UML class -



arguments - Specifying custom type for an attribute of a UML class -

i have class attribute called interval , give attribute minimum , maximum value bound interval,

how can represent this? possible?

create value type - classifier «data type» stereotype - compound type, utilize type of attribute.

for example, says classa has public attribute called interval of type interval, , interval value type has public min , max attributes of type double:

+----------------+ +-----------------------+ | «data type» | | classa | | interval | +-----------------------+ +----------------+ | + interval : interval | | + min : double | +-----------------------+ | + max : double | +----------------+

as interval value type, identity not important, held value in classa , implemented struct (if target language supports values , structs; can't have value type in java illustration stereotype implemented convention, string in java have remember not utilize == on strings identities don't matter).

you can set «uses» dependency classa interval, implicit attribute's type mutual omit it.

attributes arguments uml class-diagram

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -