Prev | Current Page 377 | Next

Tim Weilkiens

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

As soon as the hairdryer is switched on, it jumps into the initial state con-
fi guration, cold and low . Unless you are particularly concerned about damaging
your hair, you will probably switch the hairdryer from low to high and from cold
to hot . The state hot lets you additionally select either normal or extreme . When
you switch it off, the hairdryer changes to off state.
The next time you use the hairdryer it will come on in the default state con-
fi guration??” low and cold . So again, you have to go through the hassle of resetting
it to high and hot . After the third, fourth, or fi fth time you do this, you might
come to think that this hairdryer is not fi t for everyday use. This situation can be
improved, at least in the model, by using history states.
We ??™ ll now have a closer look at the circle symbol with the ??? H. ??? This is the
notation for shallow history. Shallow history causes the substate of the pertaining
region that was last active to be saved. When you now switch the hairdryer
on a second time, when traversing the shallow history, the device will read the
state that was last active and activate it directly.


Pages:
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389