Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
BEHAVIORAL MODELING
Reporters:
Adtoon, Marah I.
Lanquino, Even Adrian
Solante, Jonathan
OBJECTIVES
Understand the rules to and style guidelines for sequence and communication diagrams and behavioral state machines.
Understand the processes used to create sequence and communication diagrams and behavioral state machines.
Be able to create sequence and communication diagrams and behavioral machines.
Understand the relationship between the behavioral models and the structural and functional models.
Behavioral Models
-describe the internal dynamic aspects of an information system that supports the business processes in an organization.
One of the primary purposes of behavioral models is to show how to underlying objects in the problem domain will collaborate to support
each of the use cases.
Creating behavioral models is an iterative process that not only iterates over the individual behavioral models.
Two types of Behavioral Models
Behavioral models that are used to represent the underlying details of a business process portrayed by a use of case model.
Behavioral models that is used to represent the changes that occur the underlying data.
Interaction Diagrams
-focus on the object level.
Object
-an instantiation of a class, that is an actual person, place, event, or thing about which we want to capture information.
Attributes
-describe information about the object such as a patient’s name, birth date, address, and phone number.
Operations
-is nothing more than an action that an object can perform.
Messages
-are information sent to objects to tell an object to execute one of its behavioral.
- is a function of procedure call from one object to another object.
Sequence Diagrams
-is a dynamic model that illustrates the classes that participate in a use case and messages that pass between them over time.
-can be a generic sequence diagram that shows all possible scenarios for a use case, but usually each analyst develops a set of instant
sequence diagrams, each of which depicts a single scenario within the use case.
ApptTimes()
MatchAppts()
CreateAppt() anAppt:Appointment
A Message: aMessage()
Convey information from one object to another one.
An operation call is labeled with the message being sent
and a solid arrow, while a return is labeled with the value Return Value
being returned and shown as a dashed arrow.
Object Destruction:
An X is placed at the end of an object’s lifeline to X
show that is going out of existence.
A Frame: Context
Indicates the context of the sequence diagram.
Figure 8-2 Sequence Diagram Syntax
Building a Sequence Diagram
FindCDs()
CreateCDL() aCDL:CDList
anOrder:Order
OOOrder
Figure 8-5 Sequence Diagram for the Places Order Use Case
Patient: List
1:RequestAppt ()
4: NewCancelChangeAppt?() UnPaidBills: List
5:ApptTimes?()
Appointment: List
aPatient aReceptionist
anAppt: Appointment
Shopping Cart
Order
Figure 8-9 CRUD Matrixes for the Place Order Use Case
CDs:CD List
aSR:Search Request
aCDL:CDList
aR:Review
aCD:CD
aCD:CD
AL: Artist:Info
ML: Market Info
aCustomer
aSC:ShoppingCar
t SC:Sample:Clip
anOrder: Order
Figure 8-10 Communication Diagram for the Place Order Use Case
Transition
-is a relationship that represents the movement of an object from one state to another state.
Guard Condition
-is a Boolean expression that includes attribute values, which allows a transition to occur only if the condition is true.
Action
-is an atomic, no decomposable process than cannot be interrupted.
Activity
-is a non atomic decomposable process that can be interrupted.
Elements of a Behavioral State Machine
State
-is a set values that describes an object at a specific point in time, and represents a point in an objects life in which it satisfies some
condition, performs some action.
State Symbol
-which is a rectangle with rounded corners with a descriptive label that communicates a particular state.
Initial State
-Is shown using a small solid filled-in circle and objects.
Final State
-Is shown as a circle surrounding a small solid filled- in circle.
Enters Hospital Checks in [Diagnosis=Healthy] [>2 weeks]
Entering Admitted Released
RReleased
[Diagnosis =Unhealthy]
[Diagnosis=Healthy]
Under Observation
Denied