Docsity

Data Modelling - Banking - Lecture Slides, Slides of Banking and Finance

Toggle sidebar
bg1
Data Modelling
•Recall the data modelling relation:
Supplier Item Project
S1 I678 P54
S1 I789 P54
S1 I678 P37
S2 I678 P37
S2 I678 P42
…… …
What does is-a-
supplier-of mean?
Discuss relation in
terms of events.
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Data Modelling - Banking - Lecture Slides and more Slides Banking and Finance in PDF only on Docsity!

Data Modelling

  • Recall the data modelling relation:

Supplier Item Project S1 I678 P S1 I789 P S1 I678 P S2 I678 P S2 I678 P … … …

What does is-a- supplier-of mean?

Discuss relation in terms of events.

Understanding Relations

  • Natural way to understand meaning of relation is to consider the real world events that affect it.
  • Natural way to explain relation is in terms of those real world events.
  • Event occurrence more basic than existence of a relation, thus that is where we will start our modelling.

Event Attributes

  • What, who, when, where etc…
  • E.g., what was lent? When was it lent? Who lent it and to whom? etc.
  • Gives us attributes such as:
    • date,
    • ISBN
    • Borrower id etc. etc. for the LEND event

Define Event Classes

  • LEND (Book_Id, Member_Id, Resvn_Id, Date)
    • A book, whose identifier is Book_Id, is lent to the member whose membership number us Member_Id; date is the date of removal of the book from the library's premises; Resvn_Id is the identifier of the relevant reservation if the cook is borrowed against a previous reservation.

Objects & Event Orderings

  • Picture is not complete. Events are participated in by real world objects (e.g. librarians and borrowers)
  • We want to describe these objects that persist over time
  • Analysing event traces helps us to identify the objects of interest

Event Trace Analysis

…Hire (Veh 3), Ret (Veh 2), Purchase (Veh 9), Hire (Veh 2), Hire (Veh 9), Hire (Veh 3), Ret (Veh 2), Ret (Veh 3), Ret (Veh 9)…Dispose (Veh 2), Hire (Veh 9), Ret (Veh 9), Dispose (Veh 9)…

  • Analysis of this elicits time ordered event lists
  • From this we derive candidate entities

Entity State

  • Entities have state.
  • State is recorded in entity’s fields (its instance variables)
  • The entity state vector will store info about the entity’s event history
  • E.g., Vehicle’s present state is ‘ON HIRE’, previous states include PURCHASE, HIRE, RETURN etc.

Entity Attributes

  • Attributes specified in terms of events
  • E.g., HIRE_COUNT
  • Also need to specify what attributes mean
  • E.g., is HIRE_COUNT incremented upon hiring out, or upon return?
  • What does attribute in-the-company mean?

Definitions of Entity

  • Object of interest in the system which will undergo or cause change during system’s activity [Sutcliffe]
  • Object in the real world which participates in a time-ordered set of actions [Jackson]
  • Person, organisation or object that performs or suffers an interesting time sequence of actions [Cameron]

Finding Events

  • Events are atomic so reject those actions that are vague or that imply continuous actions
  • Ignore (for the moment) any actions which imply output or responses in the real world. In the modelling phase events are those actions which respond in some way to input messages

Action Attributes

  • Are answers to reasonable questions we might ask about an event - e.g., what was lent, who lent it etc.

Finding Entities

  • Start by analysing event traces (could be a lot of work here!)
  • Look for real world objects with which the system must interact
  • What is the main thing for which the system exists?
  • Entities could be the nouns in event descriptions