ERP Course

ERP Course: Analysis Patterns
Planning and Trading
Readings: Chapter 8 and 9 from Martin
Fowler
Peter Dolog
dolog [at] cs [dot] aau [dot] dk
E2-201
Information Systems
October 27, 2006
Planning
Plan is a set of actions which are carried out by resources
Actions are planed, completed, abondoned, postponed/suspended
They have resources allocated
A protocol is a set of actions repeated many times
Activities has outcomes and conditions to start
Peter Dolog, ERP Course, Analysis Pattern II
2
Properties of Actions
Peter Dolog, ERP Course, Analysis Pattern II
3
Basic Structure of Plans and Actions
Peter Dolog, ERP Course, Analysis Pattern II
4
Complemented and Abandoned Actions
Peter Dolog, ERP Course, Analysis Pattern II
5
Suspension of Actions
Peter Dolog, ERP Course, Analysis Pattern II
6
A Plan Consisting of References to Proposed Actions
Peter Dolog, ERP Course, Analysis Pattern II
7
Replacement Plans
Peter Dolog, ERP Course, Analysis Pattern II
8
Plans as Actions and Compound Actions
Peter Dolog, ERP Course, Analysis Pattern II
9
Structure for Protocols
Peter Dolog, ERP Course, Analysis Pattern II
10
Relationships among Action, Plan, and Protocol
Peter Dolog, ERP Course, Analysis Pattern II
11
Plan as a DAG of Proposed Actions
Peter Dolog, ERP Course, Analysis Pattern II
12
Protocol as DAG
Peter Dolog, ERP Course, Analysis Pattern II
13
Action’s Use of Resources
Peter Dolog, ERP Course, Analysis Pattern II
14
Ressource Allocation for Assets
Peter Dolog, ERP Course, Analysis Pattern II
15
Allowing Specific Allocations of Consumables
Peter Dolog, ERP Course, Analysis Pattern II
16
Links Between Observation, Plan, and Action
Peter Dolog, ERP Course, Analysis Pattern II
17
The Use of Start and Outcome Functions at the
Knowledge Level
Peter Dolog, ERP Course, Analysis Pattern II
18
Trading
Trade is about buying and selling
Trade is described by a contract
Contracts can be grouped into portfolios
Prices of goods change according to whether you look at them
from selling and buying point of view – quotes
Rapid changes can be captured by scenarios
Peter Dolog, ERP Course, Analysis Pattern II
19
Contract
Party
Contract
+counterparty
Instrument
+amount : Number
+price : Money
1..1
*
Long
Peter Dolog, ERP Course, Analysis Pattern II
*
1..1
Short
20
Buyers and Sellers and Relationship
+short
Contract
Party
1..1
+Long*
Instrument
+amount : Number
+price : Money
*
1..1
1..1
*
Peter Dolog, ERP Course, Analysis Pattern II
21
Counterparty and Primaryparty
+counterparty
Contract
Party
+primaryparty*
1..1
1..1
*
Instrument
+amount : Number
+price : Money
Long
Peter Dolog, ERP Course, Analysis Pattern II
*
1..1
Short
22
Party mappings
«derived»
*
1..1
+short
+counterparty
Contract
Party
1..1
1..1
+primaryparty*
+amount : Number
+price : Money
*
«derived»
1..1
Instrument
*
1..1
«derived»
*
+long
Short
«derived»
Long
Peter Dolog, ERP Course, Analysis Pattern II
23
Portfolio
Portfolio
Contract
-Value(scenario)
-Value(scenario)
?
Peter Dolog, ERP Course, Analysis Pattern II
*
24
Dynamic portfolios with filters
Portfolio
Contract
«derived»
-Value(scenario)
-Value(scenario)
*
*
*
{All instances on contract on which self.filter is true}
1..1
+filter
BooleanMethod
Peter Dolog, ERP Course, Analysis Pattern II
25
Contract Selectors
Date
0..1
*
+start
0..1
+end
*
+primaryparties
Instrument
ContractSelector
*
Party
*
+counterparties
*
*
*
*
1..1
+filter
*
Portfolio
Contract
«derived»
-Value(scenario)
-Value(scenario)
*
*
{All instances on contract on which self.filter is true}
Peter Dolog, ERP Course, Analysis Pattern II
26
Date
Several filter types
+start +end
0..1
*
0..1
*
+primaryparties
Instrument
ContractSelector
*
Party
*
+counterparties
*
*
*
*
HardCodedFilter
ContractFilter
-Value(scenario)
-isIncluded
+selectContracts(in Collection)
1..1
*
*
Portfolio
1..1
+filter
Contract
«derived»
-Value(scenario)
-Value(scenario)
*
*
BooleanMethod
*
{All instances on contract on which self.filter is true}
SetFilter
SetOperation
{documentation = Instances: Union, Intersection, Negation}
*
*
Peter Dolog, ERP Course, Analysis Pattern II
1..1
27
Quotes
Quote
+bid : Number
+offer : Number
+mid : Number
+spread : Number
+print()
{bid = offer}
OneWayQuote
{spread = bid - offer
AND
mid=(bid + offer)/2}
TwoWayQuote
Instrument
+price : Quote
Peter Dolog, ERP Course, Analysis Pattern II
28
Changes in Quotes
Instrument
Quote
1..1
*
Timepoint
*
Instrument
1..1
Price
1..1
*
Quote
*
1..1
*
1..1
Timepoint
Peter Dolog, ERP Course, Analysis Pattern II
29
Scenarios
Instrument
Scenarioelement
1..1
Quote
*
*
1..1
*
1..1
Party
+publisher
1..1
Scenario
*
Peter Dolog, ERP Course, Analysis Pattern II
Timepoint
*
1..1
30
Derived Scenario Elements
Instrument
SourcedScenarioElement
SourcingIndex
*
InformationSource
1..1
*
+denominator
MarketIndicator
1..1
+numerator
1..1
*
1..1
*
1..1
Cross-RateScenarioElement
Scenarioelement
*
1..1
*
*
1..*
1..1
Quote
Scenario
+Arguments[list]
CalculatedScenarioElement
*
*
Timepoint
1..1
Peter Dolog, ERP Course, Analysis Pattern II
31