System Level Design Languages:UML 2.0 Diagrams
UML 2.0 Diagrams
A UML model consists of several elements, or their objects which are instantiated, form these elements. UML models contain three major categories of elements.
• Classifiers that describe a set of objects such as components and classes
• Events that describe a set of possible occurrences in the system such as transitions
• Behaviors that describe a set of algorithm performances such as use-cases
UML is a graphical language for modeling and consists of a set of diagrams. Each diagram includes a set of classifiers, events, and behaviors. These diagrams demonstrate the relationship between these elements. Each diagram (or set of diagrams) is suitable for a specific kind of system. For example, an activity diagram may describe the model of a system more clearly than a state diagram. Different diagrams can be used to model different aspects of a system. Another important point in modeling with UML diagrams is that they are useful for a design if the design consists of different modules (parts) which have communication between themselves. A design with only one part (or element) is not suitable to be modeled with UML.
In the following, we will briefly describe 13 UML 2.0 diagrams. These diagrams are divided into two general categories, structural and behavioral modeling diagrams. The former shows the static architecture of a model, while the latter represents the behavior of the model as it is executed over the time. Package, class, object, composite structure, component, and deployment diagrams are structural modeling diagrams. In contrast, use-case, activity, state machine, communication, sequence, timing, and interaction overview diagrams are behavioral modeling diagrams.
Use-Case Diagram
The use-case diagram shows the system requirements from a user’s point of view. It gives an overall view of the system’s functionality. This diagram consists of two elements: actors and use-cases.
An actor is an external entity for the system. It can either be a person (the user of the system, the operator, or the system administrator) or another system. In a use-case diagram, an actor can either be represented as a stick-man figure with its name above or under it, or as a rectangle with the ((actor)) stereotype as shown in Figure 86.5. Actors can have generalizations; this implies that an actor can be a special case of a more general actor.
A use-case is a simple unit of a meaningful task in a system. In our SSimBoard system, loading a circuit model into the board can be considered as a use-case. A use-case that has a name and a description can also have other use-cases inside it.
A use-case has a functional specification and usually the flow of events in textual mode. It can also have constraints which include preconditions, postconditions, and invariant conditions. Preconditions, like that of StartSimulation in Figure 86.6, are the conditions that must be true before entering
a use-case, while postconditions must be true after a use-case is executed. Invariant conditions are the conditions that must be true during all the time of a use-case execution. In our first element categorization, use-cases can be considered as behaviors. In UML, each use-case is shown by an ellipse.
The relation between an actor and a use-case or two use-cases is shown by an arrow. There are two different kinds of relationships between two use-cases:
• extend: the extend relationship occurs between two use-cases (from the extending use-case to the extended use-case). It means that the behavior of the extending use-case can be extended by the behavior of the extended use-case under specific conditions and points. These specific points are named extension points and are defined in the extended use-case. The conditions can be added to the arrows between these use-cases. An extending relationship is defined by the ((extend)) stereotype in the diagram.
• include: the include relationship occurs between two use-cases (from the including use-case to the included use-case). It means that the including use-case contains the behavior of the included use-case. The including relationship is defined by the ((include)) stereotype in the diagram.
In use-case diagrams, the use-cases are usually separated from the actor with a boundary. This is to show that the actors are out of the system while the use-cases are inside the system. Figure 86.6 shows a simple use-case diagram for SSimBoard system.
Comments
Post a Comment