Prev | Current Page 306 | Next

Tim Weilkiens

"Systems Engineering with SysML/UML: Modeling, Analysis, Design"


4. protected (denoted as #)??”the attribute is visible only to subclasses of the
pertaining class.
Table 3.1 Examples for multiplicities
Multiplicity Meaning
0..1 The value is optional.
1 Exactly one value (default when no
multiplicity is stated).
2..4 At least two values and at most four values.
0..* None to an arbitrary number of values.
* None to an arbitrary number of values
(shortcut notation).
4 Mathematically, a set cannot contain identical elements.
FIGURE 3-9
Example for attributes of the ???customer??? class and a customer object.
class Class Customer and customer object
Customer
-name:String
-ID:String
-isBlocked:Boolean
-pinCheckCode:String
-routes:Route[0..5] {ordered}
name???Gabi Goldfish???
ID2965
isBlockedfalse
pinCheckCode???ddhus???
routes...
pinCheck(pin)
gabi:Customer
153
Altogether, the syntax for attributes is:
 visibility   name  :  Type  [  multiplicity  ]  initial value  {property
string}
Visibilities do not play any role in SysML, where all attributes are public by
defi nition.


Pages:
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
pieniny noclegi ubrania pupa make up ATC Golec uOrkiestra 3