130 likes | 145 Views
Learn about the applications of the Matrix Model of Computation by Sergio Pissanetzky. Explore two forms of the model, imperative and canonical, and delve into Matrix Q, the imperative part of the model. Understand the business problems and services associated with the model, including sequences and relations. Discover how relations in the model support inheritance, transformations, and UML models. Get insights into refactoring within the Matrix Model of Computation and reach conclusions about its practical implications.
E N D
Applications of theMatrix Model of Computation Sergio Pissanetzky
The MMC consists of two sparse matrices: M = (C, Q) C = Matrix of Services Q = Matrix of Sequences The model has two forms: ● imperative form ● canonical form. Matrix Q is the imperative part of the model.
A Business Problem M A a B b S C Services: Init, AM, BM, CM, AS, BS, CS, MCost, SCost
Matrix of Sequences R Q =
Relations are code Relation R = Program in C
Relations are object-oriented Relation R =
Case b/a ● Consider control variable b. ● Add foreign keys for variable b. ● Project on (P, b, h) and (h, a, F). R3 R = R4
Relations support UML models R1 R2 R2 Caller initializes a. Caller constructs A/B/CModel initialize b. Caller calls Cost, passing a Cost selects MList /SList a decision. MList, SList call their override b decision, calculate the list of equipment, construct a Mail or Spray object, and call their M/SCost method to calculate cost.
Relations support Patterns R3 R3 R4 R4