Академический Документы
Профессиональный Документы
Культура Документы
Learning Objectives:
Why Entity Life Histories (ELHs) provide us with our third view of the system?
The Differrent views of the system ( the dynamic sequence, or time-based view of the
system),
How to construct sequence, selection and iteration diagrams in ELH.
LEARNER
Entity Iteration
Sequence
Selection
Introduction
BANK
ACCOUNT
TRANSACTION
Figure 1.ELH
The elements of the notation used in this example are:
Sequence: the boxes read left to right from Account Opened to Account
Deletion. Thus Account Closure must happen before Account Deletion.
Selection: the boxes with small circles in the top right corners are alternatives
for one another, so each Transaction is one of Pay Deposit, Direct Deposit or
Cheque Cashed.
Iteration: the box with the asterisk in the top right corner represents iteration,
many Transactions can occur one after another.
All the elements of the notation are described in detail in the next section.
1. Sequence.
2. Selection.
3. Iteration.
All Entity Life Histories can be built up using just these three components.
However, certain complex situations can be simplified by the use of two other
conventions:
4. Parallel Structures.
5. Quit and resume.
For clarity, the diagramming component types may not be mixed at the same
level within the same part of the diagram. Thus, an iteration may not be placed
at the same level as a sequence; instead. A node is placed within the sequence
and the iteration dropped down a level. The component types are described
here, but their use within SSADM is described in later sections.
Sequence
A B C D
Figure 2.ELH
The box labeled A will always be the first to occur followed by B, which in
turn is followed by C then D. This sis the only possible sequence. Although the
sequence may be thought of us a progression through time, there is no indication
of the time intervals between the boxes within a sequence. These could span
minutes, hours, days, or years.
Selection
ENTITY X
A B C D
E F G
Fig. 3 ELH.
As node A is at the beginning of the Entity Life History, this diagram
shows that an occurrence of entity X must be created only one of three events:
E, F or G. If there is a requirement to show that one of the options need not be
selected, a null box may be added as shown in Fig4 ELH. This extension to the
banking example shows that a Bank Account could start with a Pay Deposit, a
Direct Deposit, or neither of these.
POSSIBLE
DEPOSIT
PAY DIRECT
DEPOSIT DEPOSIT
Figure 4. ELH
The null box does not represent an effect or node, but is a notational
device to indicate the situation where something may or may not happen. If the
null box is selected, the Entity Life History continues directly to the next node or
effect.
Iteration
ENTITY X
A B C D
E F G H
Figure 5.ELH
After entity X has been created by E, F, or G, the event H may affect the
entity any number of times. Here it is important to note that any number of
times includes none, so an iteration is another way of showing that something
may occur or it may not. However, the iteration must not be used where an effect or
node occurs either once or not at all. In this situation the null box is more
accurate as in Fig 4.
Parallel structures
A parallel structure is used in the situation where effects or nodes occur in
no predictable sequence or concurrently. A parallel structure is shown as a
parallel bar on the Entity Life History diagram as in Fig 6 ELH. This represents
the situation where the sequence of K, L, and M occurs at this point in the Entity
Life History, and event N may affect the entity a number of times during this
sequence. The node I, representing the sequence, and the node J, representing
the iteration, are shown under the parallel bar.
ENTITY X
A B C D
E F G H
I J
K L M N
Figure 6.ELH
Figure 6 ELH could be drawn without the use of the parallel structure, as
shown in Fig 7 ELH. In order to shown that the event N may occur anywhere in
the sequence of K, L, and M, the iteration of N must be repeated several times.
The diagram is made much more clearly by the use of the parallel structure.
ENTITY
X
A B J K J L J M J D
H N N N N
Figure 7. ELH
Quit and resume
A B C D
R1
E F G H *
I J
K L M N
*
Figure 8. ELH.
When an occurrence of entity X has been created by event F, the next
event to affect the entity will always be D and cannot be H, K, or N.
To avoid any ambiguity, Fig. 8. ELH could be redrawn to give the structure
shown in Fig. 9.ELH
ENTITY X
P D
F G
A B C
E G H*
I J
K L M N*
Figure 9.ELH
Two new nodes, P and Q, have been introduced into the diagram to
ensure that objects of the same type remain at the same level. In practice, if
quits and resumes are all removed, the diagrams become very complex,
reducing the clarity of the diagrams. Thus a compromise between ambiguity and
clarity is made.
BANK
In the banking example, it ACCOUNT
is possible to reopen a bank account that has
been closed, but not yet deleted. In this case, the event Account Reopened
causes a quit back to the part of the Entity Life History before Account Closure.
This backwards quit is shown by Q1 and R1 in Fig.10.ELH
ACCOUNT ACCOUNT ACCOUNT POSSIBLE ACCOUNT
OPENED LIFE CLOSURE RE-OPEN DELETION
Another use of the quit and resume convention allows a quit from the main
structure of an Entity Life History, and a resume at a box on a stand-alone
structure. This is used where an event might occur at any time, altering the
sequence of the Entity Life* History.ACCOUNT
TRANS As it is impossible to predict where on the
RE-OPENED
diagram the quit mightACTIONoccur, no Q is placed on the structure. Instead, a
sentence indicating the area of the Entity Life History the quit might occur from
and the circumstances that cause the quit is placed at the bottom of the diagram.
The stand-alone
PAY
boxDIRECT
or substructure is annotated with the DEATH
CHEQUE
R that corresponds to
STRUCTURE
the QDEPOSIT
detailed in thisDEPOSIT
sentence. AnCASHED
example of this random quit is shown by Q2
and R2 in Fig. Here, the death of a customer may occur at any time after the
CUSTOMER CUSTOMER
DEATH DELETION
BANK
ACCOUNT
TRANS * ACCOUNT
RE-OPENED
ACTION
DEATH
PAY DIRECT CHEQUE STRUCTURE
DEPOSIT DEPOSIT CASHED
CUSTOMER CUSTOMER
DEATH DELETION
More examples..
Figure 11 shows the entity life history for the inventory entity. An
inventory begins its life by an "Inventory definition", and ends it
either by an "Inventory discontinuance" (being discontinued as a
place to store a particular product type), or by "Product type
discontinuance" (discontinuance of the product type itself,
cascading to include inventory.). Note that discontinuance of a
location does not kill its inventory occurrences, since the
restricted rule prevents deleting a location if any inventory
occurrences exist.
Figure 11: Inventory
Location
Figure 12 shows the entity life history for location. A
locations life begins with a "Location definition", and ends with a
"Location discontinuance". In between, its "Location life" consists
of one or more "Location events", each of which may be either
an "Inventory definition" or an "Inventory end". Note that the
events that affect inventory do not directly affect location, and
they are not shown here. (In fact, location may be read for its
"description" for example, but for simplicity, this is not shown.)
Figure 12: Location
Purchase Order
Figure 13 shows the entity life history for purchase order. It
begins with "Purchase order issuance", and ends with the
constructed event, "Purchase order end". In between its issuance
and its end, its "Purchase order life" may consist of one or more
"Purchase order transactions".
Figure 13: Purchase Order
Line Item
Figure 14 shows the entity life history for the component of a
purchase order, the line item. Normally, the line item is born at
the same time as the purchase order ("Purchase order
issuance"). Once the purchase order has been created, however,
line items may be added or dropped. The former is an alternative
way to create a line item, and so "Line addition" is shown as one
of the options for "Line item birth".
Figure 14: Line Item
Product Type
Figure 15 shows the entity product type. Its first-level
sequence of "Product type definition", "Product type life", and
"Product type discontinuance" is much like that of the other
entities weve seen. There are two kinds of "product type event
"Description change" modifies the product type occurrence
itself, while the other three events affect its relationship with line
item: "Purchase order issuance" will tie product type to a newly
created line item, as will "Line item add"; "Line drop" will cut the
link to a line item, just before the line item is deleted.
Figure 15: Product Type
Operations
So far, we have diagrammed the relationships between
events and object classes (entities). The next assignment is to
fold in the functions (or activities). Actually, in this context, we
will call them operations, since they are described at a very low
level of detail. Specifically, operations are described in terms of
the specific actions taken on various entities in response to each
event. In object-oriented terms these are the behaviors or
"methods" of each entity in response to each event or
"message".
The principles of essential systems analysis say that the
atomic process in the functional analysis of a business is that
which is a complete response to an event. That is, complete
external events and essential business activities have a one to
one correspondence. To write programs, however, it is necessary
to break these activities down into the manipulations appropriate
to managing a body of data.
Line addition
10. (3., above)
Line drop
11. Cut line item from purchase order (before deleting
the line item.)
Table 1: Operations
For each entity life history, then, for each event, we can
identify the definition, tying, cutting, and updating required.
Figure 18: Operations
Reading Assignment:
Link:
E-Journals/E-Books
PUP website: infotrac.galegroup.com/itweb/pup
Password: powersearch
Exercises/Written Assignment:
Case No. 1
An applicant to the L.J.M.U. sends in an application form. From the details contained on
the application form the applicant is either rejected, given a conditional offer or given an
unconditional offer.
If an unconditional offer is made, then the offer may either be accepted or rejected by the
applicant.
If a conditional offer is made then the applicant upon notifying the University of their
results will either be given an unconditional offer, which can be accepted or rejected or
they will be rejected by the University.
Case No. 2
A bank account is opened by Winston Smith at the BB Bank PLC. During the following
year Winston makes a number of transactions which are either deposits or withdrawals.
At the end of the year the account is audited and the interest due is added to the account.
On 12th February the following year Winston closes his bank account.
Case No. 3
In the Eurofighter 2000.75, the control system for target acquisition and destruction
operates as follows:
The pilot of the aircraft activates the TAD system (Target acquisition & destruction), the
system will then automatically seek any active infra-red sources within the current target
area. The pilot may override the target area definition if necessary. If no active infra-red
sources are detected, the system will inform the pilot of this fact, otherwise it will map
out onto the holographic head-up display, the targets identified and their status. The pilot
can either track a selected target, deactivate the system or engage the automatic firing
sequence. If the tracking option is selected the system will track the target until the pilot
deactivates the system. If the automatic firing sequence is engaged the system will select,
arm and fire appropriate weapons systems until the target is destroyed. Upon destruction
of the selected target, the pilot can either chose to track another target, engage the
automatic firing sequence for another target or deactivate the sequence.
References/Bibliography
Systems Analysis and Design in a Changing World, John SAtzinger, Robert Jackson and
Stephen Burd, 5th edition , Thomson Course Technology, 2009
Systems Analysis and Design, Allan Dennis and Barbara Haley Wixom, John Wiley and
Sons, 2000
Date, Chris, An Introduction to Database Systems, Vols. I and II. Fourth Edition.
Addison-Wesley, Reading, MA, 1987.
Hoffer, J. A, George J.F Valacieh, J.S, Modern Systems Analysis and Design
Copyright 1996 by the Benjamin/Cumming Publishing Co. Inc.
Kendall, Kenneth E; Kendall Julie E, 2nd Ed. Systems Analysis and Design
Copyright 1992 by Prentice Hall Inc.
Silver, Gerald A; Silver, Myrna L.; Systems Analysis and Design; Copyright 1989
by Addison-Wesley Publishing Company, Inc.