CommUnity, Tiles and Connectors - PowerPoint PPT Presentation

About This Presentation
Title:

CommUnity, Tiles and Connectors

Description:

Comparing the categorical and the algebraic approach to systems ... Corollary: Diagrams with the same colimit are mapped to tile bisimilar configurations ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 60
Provided by: rb790
Category:

less

Transcript and Presenter's Notes

Title: CommUnity, Tiles and Connectors


1
CommUnity, Tiles and Connectors
Agile Meeting, 8-9 July 2004
Ivan Lanese Dipartimento di Informatica
Università di Pisa
Ongoing Work!
joint work with Roberto Bruni José Luiz
Fiadeiro Antónia Lopes Ugo Montanari
2
Roadmap
  • Motivation
  • From CommUnity to Tiles
  • Connectors
  • Concluding remarks

3
Roadmap
  • Motivation
  • From CommUnity to Tiles
  • Connectors
  • Concluding remarks

4
General motivation I
  • Comparing the categorical and the algebraic
    approach to systems
  • Categorical approach
  • Algebraic approach

5
General motivation II
  • Comparing the categorical and the algebraic
    approach to systems
  • Categorical approach
  • objects are system components
  • morphisms express simulation, refinement,
  • complex systems are modeled as diagrams
  • composition via universal construction (colimit)
  • Algebraic approach

6
General motivation III
  • Comparing the categorical and the algebraic
    approach to systems
  • Categorical approach
  • Algebraic approach
  • System represented by an algebra
  • constants are basic components
  • operations compose smaller systems into larger
    ones
  • structural axioms collapse structurally
    equivalent systems
  • operational semantics (SOS style)
  • abstract semantics (bisimilarity)

7
Specific aim
  • Reconcile two selected representatives
  • CommUnity (categorical)
  • architectural description language
  • distinction between computation and coordination
  • Tile Model (algebraic)
  • operational model for concurrent systems
  • co-existence of horizontal (space) and vertical
    (time) dimensions

8
Specific aim advantages
  • Advantage transfer of concepts and techniques
  • Semantics model for CommUnity
  • Observational equivalence of CommUnity
    configurations
  • CommUnity-like connectors in the tile model
  • Separation between computation and coordination
    for tiles

9
Roadmap
  • Motivation
  • From CommUnity to Tiles
  • Connectors
  • Concluding remarks

10
From CommUnity to Tiles
  • Aim
  • To define the operational and abstract semantics
    of CommUnity diagrams by translating them to
    tiles
  • First step
  • Standard decomposition of programs and diagrams
  • identify basic building blocks
  • make the translation easier
  • Second step
  • From standard diagrams to tiles
  • basic programs to basic boxes
  • cables, glues and morphisms (coordination)
    modeled as connectors

11
Results
  • The translation of a diagram is tile bisimilar to
    the translation of its colimit IFIP-TCS 2004
  • Corollary Diagrams with the same colimit are
    mapped to tile bisimilar configurations
  • Colimit axiomatization Ongoing work!
  • add suitable axioms for connectors
  • the translation of a diagram is equal
    up-to-axioms to the translation of its colimit
  • axioms bisimulate (correctness)
  • existence of normal forms hopefully!

12
Why Standard Decomposition
  • Decomposition is part of the translation
  • Decomposition is necessary to achieve colimit
    axiomatization
  • the axiomatization of connectors cannot change
    the number of computational entities
  • decomposition allows to have the same number of
    computational entities in the diagram and in the
    colimit

13
Standard Decomposition Illustrated
P
glue
cables
Channel / guard managers
14
Standard Decomposition Illustrated
  • n output channels
  • m actions

P
  • n channel managers
  • m guard managers
  • nm cables
  • 1 glue

15
Channel Manager
one channel manager for each output variable x of
P
channel manager for x
i
i
i
i
i
i
o
16
Guard Manager
one guard manager for each action a of P
guard manager for a
i
i
i
i
i
i
no output channel
17
Glue
one glue
i
i
i
i
i
i
no output channel
18
Cables
one cable for each manager
i
i
i
i
i
i
no output channel
Morphisms are obvious
19
Scheme of the translation
channel manager
action synchronization through connectors
channel fusion
state

channel manager
guard manager

guard manager
20
Notation
  • Since
  • In CommUnity initial and final configuration are
    always equal (apart from values in state)
  • We shall consider only two kinds of observations
  • action performed / action not performed
  • We use a flat notation for tiles

1
0
21
Tiles for components
actions of managers are mutually exclusive,
but at least one action (e.g. ?) must be executed
22
Roadmap
  • Motivation
  • From CommUnity to Tiles
  • Connectors
  • Concluding remarks

23
Connectors
  • Connectors are used to model diagram morphisms,
    cables and glues
  • they express constraints on local choices
  • Connectors with the same abstract semantics
    should be identified
  • different ways of modeling the same constraint
  • How?
  • Axioms reduction to normal form

24
Abstract semantics
  • Connectors can be seen as black boxes
  • input interface
  • output interface
  • admissible signals on interfaces

1
1
1
1
2
2
2
2
3
3
3
3
4
4
25
Abstract semantics
  • Connectors can be seen as black boxes
  • input interface
  • output interface
  • admissible signals on interfaces
  • Abstract semantics is just a matrix
  • n inputs ? 2n rows
  • m outputs ? 2m columns
  • input/output swap is transposition
  • sequential composition is matrix multiplication
  • parallel composition is matrix expansion
  • cells are filled with empty/id copies of matrices

1
1
1
1
2
2
2
2
3
3
3
3
4
4
26
An example Symmetries
connectors boxes are immaterial
27
AND-Connectors
28
AND-Tables andNormal Form
  • n m 0 or 0 lt n ? m
  • entry with empty domain is enabled
  • only one entry with empty input/output is enabled
  • entries are closed under (domains)
  • union
  • intersection
  • difference
  • complementation
  • at most one entry enabled for every row/column
  • exactly one entry for every row

29
co-AND-Connectors
1
0
(transposition of AND table)
?
00
01
10
?
11
30
Mixed-AND-Connectors

31
Mixed-AND-Connectors


32
Mixed-AND-Connectors



33
Mixed-AND-Connectors



34
Mixed-AND-Connectors



35
Mixed-AND-Tables andNormal Form
  • n m 0 or 0 lt n,m
  • entry with empty domain is enabled
  • only one entry with empty input/output is enabled
  • entries are closed under (domains)
  • union
  • intersection
  • difference
  • complementation
  • at most one entry enabled for every row/column
  • exactly one entry for every row

36
HIDE-Connectors (and co-)
!
!
.
?
0
?
1
37
A Relevant Difference
!
?
!
!
38
A Sample Proof
!
!
39
SYNC-Tables and Normal Form
  • n m 0 or 0 lt n,m
  • entry with empty domain is enabled
  • only one entry with empty input/output is enabled
  • entries are closed under (domains)
  • union
  • intersection
  • difference
  • complementation
  • at most one entry enabled for every row/column
  • exactly one entry for every row

40
MEX-Connectors
41
co-MEX-Connectors
  • Transposed tables
  • Symmetric axioms

42
Mixed-MEX-Connectors

?
43
Mixed-MEX-Connectors

?
44
Mixed-MEX-Connectors

?
?
45
Mixed-MEX-Connectors

?
?
46
Mixed-MEX-Connectors

?
?
47
ZERO-Connectors

48
Some Axioms About ZERO
0

49
A Sample Proof
0
0
50
Some Axioms About MEX-AND

51
Key Axioms
?
52
Key Axioms

!
53
An Axiom Scheme
!
!


n
n

!
!
!
54
Finally (almost) FULL-Tables
  • n m 0 or 0 lt n,m
  • entry with empty domain is enabled
  • only one entry with empty input/outputs
  • entries are closed under (domains)
  • union
  • intersection
  • difference
  • complementation
  • at most one entry enabled for every row/column
  • exactly one entry for every row

55
FULL-Tables and Normal Form
56
ONE-Connector
1
  • All tables can now be defined, but
  • negation is introduced
  • and inconsistent connectors with it!
  • ONE is not needed for CommUnity

57
Roadmap
  • Motivation
  • From CommUnity to Tiles
  • Connectors
  • Concluding remarks

58
Concluding Remarks
  • We have learned that reconciling the categorical
    and algebraic approach is not an easy task
  • We got some insights on further extensions
  • more labels, weights
  • Related to constraint solving

59
Future work
  • Still one open problem
  • is the axiom schema really needed?
  • On the mapping from CommUnity to tiles
  • locations
  • reconfigurations
  • refining
  • More in general
  • what happens if we choose other algebraic and
    categorical formalisms?
Write a Comment
User Comments (0)
About PowerShow.com