object oriented modelling and heterogeneous networks
play

Object-Oriented Modelling and Heterogeneous Networks Joakim Bjrk - PowerPoint PPT Presentation

Object-Oriented Modelling and Heterogeneous Networks Joakim Bjrk Einar Broch Johnsen Marcel Kyas Olaf Owe Department of Informatics, University of Oslo, Norway Formal Methods for Components and Objects October 23, 2008, Sophia Antipolis,


  1. Object-Oriented Modelling and Heterogeneous Networks Joakim Bjørk Einar Broch Johnsen Marcel Kyas Olaf Owe Department of Informatics, University of Oslo, Norway Formal Methods for Components and Objects October 23, 2008, Sophia Antipolis, France

  2. Creol at a glance an executable OO modelling language targets open distributed systems allows to abstracts from the particular properties of the (object) scheduling and of the (network) environment operational semantics formally defined in rewriting logic the language design supports formal verification Talk Overview Biomedical sensor networks Interfaces, classes, and types Concurrency, interaction Network awareness Modelling biomedical sensor networks Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 2 / 22

  3. No pictures But the pictures are not the subject matter of geometry and we are not permitted to reason from them. It is true that most people including mathematicians, lean upon these pictures as a crutch and find themselves unable to walk when the crutch is removed. Morris Kline in the chapter “A Discourse on Method” from “Mathematics in Western Culture”, Oxford University Press, 1953 Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 3 / 22

  4. No pictures But the pictures are not the subject matter of geometry and we are not permitted to reason from them. It is true that most people including mathematicians, lean upon these pictures as a crutch and find themselves unable to walk when the crutch is removed. Morris Kline in the chapter “A Discourse on Method” from “Mathematics in Western Culture”, Oxford University Press, 1953 Pictorial representation of software and structure is only adequate for tiny systems Pictures tend to abstract too many aspects of a model ❀ many pictures representing different views People usually cannot combine all views and pictures into a consistent model Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 3 / 22

  5. Important features Encourages non-determinism and concurrency At all times at most one activity Intra-object communication is by shared attributes and cooperative scheduling Inter-object communication is by asynchronous method calls only Expressions have never side effects Statements are the only means to change the state Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 4 / 22

  6. Biomedical sensor networks Biomedical sensors measure body values, e.g. body temperature, heart frequency (EKG), oxygen saturation (SP O 2 ) Systems aggregate and visualise these Values out of bounds should be reported Cables are obstructive and Data transmission and energy shall be replaced by wireless supply by cables transmission Multi-hop communication to conserve energy Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 5 / 22

  7. Context of biomedical sensor networks At home Emergency/ Paramedics Hospital ◮ Diagnosis ◮ Operation ◮ post-operative case Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 6 / 22

  8. Test platform 8 MHz TI MSP430 microcontroller (10 k RAM, 48 k Flash) IEEE 802.15.4 Chipcon Wireless Transceiver Four modes ◮ Sendinf (Tx) ◮ Receiving (Rx) ◮ Idle ◮ Shutdown Figure: Tmote Sky Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 7 / 22

  9. Anatomy of a sensors n 1 : Node n 2 : Node s : Sensor c : Controller r : Radio e : Environment n 3 : Node s : Sink Figure: Structure of the object-oriented model The “Controller” collects data “Sensor” reads values from processes data patient when commanded by sends it on the radio controller receives messages on the “Radio” sends and receives radio data decides whether to route manages energy Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 8 / 22

  10. Properties of communication n 1 : Node n 2 : Node s : Sensor c : Controller r : Radio e : Environment n 3 : Node s : Sink Figure: Structure of the object-oriented model Internal communication realised External communication realised by with a bus: wireless channels: Reliable Higher probability of collisions Queued Requires rendezvous of sender and receiver Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 9 / 22

  11. Properties of communication n 1 : Node n 2 : Node s : Sensor c : Controller r : Radio e : Environment n 3 : Node s : Sink Figure: Structure of the object-oriented model Internal communication realised External communication realised by with a bus: wireless channels: Reliable Higher probability of collisions Queued Requires rendezvous of sender and receiver Properties like “throughput” depend on the exact channel used, therefore we need a model of heterogeneous networks. Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 9 / 22

  12. Properties of communication n 1 : Node n 2 : Node s : Sensor c : Controller r : Radio e : Environment n 3 : Node s : Sink Figure: Structure of the object-oriented model Internal communication realised External communication realised by with a bus: wireless channels: Reliable Higher probability of collisions Queued Requires rendezvous of sender and receiver Nodes will turn off their Radios to save energy: Communication is disrupted during these times. Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 9 / 22

  13. Properties of communication n 1 : Node n 2 : Node s : Sensor c : Controller r : Radio e : Environment n 3 : Node s : Sink Figure: Structure of the object-oriented model Internal communication realised External communication realised by with a bus: wireless channels: Reliable Higher probability of collisions Queued Requires rendezvous of sender and receiver Successful communication between nodes requires that all radio components of participating nodes are on. Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 9 / 22

  14. Creol An object-oriented modelling language with: Classes, interfaces Multiple inheritance, typing and inheritance are disjoint Asynchronous method calls with future variables Functional expression language Library of common data types Simple semantics and simple proof system Creol differs from a programming language in: Unspecified scheduling, Non-deterministic choice, Allowing logical expressions (similar to Hilbert’s ε ) Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 10 / 22

  15. Creol language constructs Syntactic Definitions categories IF ::= interface I [ inherits { I } ] C , I , m ∈ Names begin { with I { Sg }} end n ∈ Network CL ::= class C [ { x : I } ][ inherits { C } ][ implements { I } ] t ∈ Label begin [ var {{ x } : I [:= e ] } ] { [ with I ] { M }} end g ∈ Guard M ::= Sg == [ var {{ x } : I [:= e ] } ;] s p ∈ MtdCall Sg ::= op m ([ in { x : I } ][ out { x : I } ]) s ∈ Stmt g ::= b | t ? | g ∧ g | g ∨ g x ∈ Var s ::= begin s end | s ; s | s ✷ s | x := e | release e ∈ Expr | x := new [ component ] C [( { e } )] | skip o ∈ ObjExpr | if b then s [ else s ] end | [ t ]![ o . ] m ( { e } ) | t ?( x ) b ∈ BoolExpr | await g | [ await ][ o . ] m ( { e } ; { x } ) Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 11 / 22

  16. Creol language constructs Syntactic Definitions categories IF ::= interface I [ inherits { I } ] C , I , m ∈ Names begin { with I { Sg }} end n ∈ Network CL ::= class C [ { x : I } ][ inherits { C } ][ implements { I } ] t ∈ Label begin [ var {{ x } : I [:= e ] } ] { [ with I ] { M }} end g ∈ Guard M ::= Sg == [ var {{ x } : I [:= e ] } ;] s p ∈ MtdCall Sg ::= op m ([ in { x : I } ][ out { x : I } ]) s ∈ Stmt g ::= b | t ? | g ∧ g | g ∨ g x ∈ Var s ::= begin s end | s ; s | s ✷ s | x := e | release e ∈ Expr | x := new [ component ] C [( { e } )] | skip o ∈ ObjExpr | if b then s [ else s ] end | [ t ]![ o . ] m ( { e } ) | t ?( x ) b ∈ BoolExpr | await g | [ await ][ o . ] m ( { e } ; { x } ) Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 11 / 22

  17. Creol language constructs Syntactic Definitions categories IF ::= interface I [ inherits { I } ] C , I , m ∈ Names begin { with I { Sg }} end n ∈ Network CL ::= class C [ { x : I } ][ inherits { C } ][ implements { I } ] t ∈ Label begin [ var {{ x } : I [:= e ] } ] { [ with I ] { M }} end g ∈ Guard M ::= Sg == [ var {{ x } : I [:= e ] } ;] s p ∈ MtdCall Sg ::= op m ([ in { x : I } ][ out { x : I } ]) s ∈ Stmt g ::= b | t ? | g ∧ g | g ∨ g x ∈ Var s ::= begin s end | s ; s | s ✷ s | x := e | release e ∈ Expr | x := new [ component ] C [( { e } )] | skip o ∈ ObjExpr | if b then s [ else s ] end | [ t ]![ o . ] m ( { e } ) | t ?( x ) b ∈ BoolExpr | await g | [ await ][ o . ] m ( { e } ; { x } ) Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 11 / 22

  18. Creol language constructs Syntactic Definitions categories IF ::= interface I [ inherits { I } ] C , I , m ∈ Names begin { with I { Sg }} end n ∈ Network CL ::= class C [ { x : I } ][ inherits { C } ][ implements { I } ] t ∈ Label begin [ var {{ x } : I [:= e ] } ] { [ with I ] { M }} end g ∈ Guard M ::= Sg == [ var {{ x } : I [:= e ] } ;] s p ∈ MtdCall Sg ::= op m ([ in { x : I } ][ out { x : I } ]) s ∈ Stmt g ::= b | t ? | g ∧ g | g ∨ g x ∈ Var s ::= begin s end | s ; s | s ✷ s | x := e | release e ∈ Expr | x := new [ component ] C [( { e } )] | skip o ∈ ObjExpr | if b then s [ else s ] end | [ t ]![ o . ] m ( { e } ) | t ?( x ) b ∈ BoolExpr | await g | [ await ][ o . ] m ( { e } ; { x } ) Marcel Kyas (UiO) Heterogeneous Networks 2008-10-23 FMCO 11 / 22

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend