Download BSc (Hons) Computing Science Staffordshire University A project

Transcript
the name of the instance is on the left hand side. The two combined together make
the object name and is underlined.
theRobin::Bird
species = "robin"
wingspan = "9"
agespan = "7"
colour = "red"
sex = "male"
Figure 7: Object icon
10.2.3 State diagram
An object is in a particular state at any given time, for example a bird could be
walking, flying, eating, sleeping, etc… . Figure 8 shows how the UML notation
looks like when it shows the state of the bird object transitions from one action to
the other. The state diagram has a figure at its top, it represents the state at which
the object starts and a figure at its bottom showing its last state.
sleeping
eating
flying
walking
42
Staffordshire University