Resource Interfaces - PowerPoint PPT Presentation

1 / 61
About This Presentation
Title:

Resource Interfaces

Description:

our Java extension CHIC ('CHecking Interface Compatibility'). A Dynamic Interface ... the inputs: Interfaces are Games! -Player Environment vs. player System. ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 62
Provided by: chessEecs
Category:

less

Transcript and Presenter's Notes

Title: Resource Interfaces


1
Resource Interfaces
  • Arindam Chakrabarti Luca de Alfaro
  • Thomas A. Henzinger Mariëlle Stoelinga
  • arindam,tah_at_eecs.berkeley.edu
  • luca,marielle_at_soe.ucsc.edu

2
Resource Interfaces
  • Correctness of embedded software
  • Ensure behavioral correctness
  • Satisfy resource-usage constraints
  • Resource interfaces Automata-based type system
    for compositional state-aware resource-usage
    analysis of open systems

3
Interfaces
  • Static interfaces
  • Dynamic interfaces
  • Resource interfaces

4
A Static Interface
This interface constrains the users data. e.g.
typed programming languages
5
Static Interface Compatibility
6
Static Interface Compatibility
Input and Output types match ) compatible
7
Static Interface Incompatibility
Input Output type mismatch ) not compatible
8
Static Interface Composition
9
Static Interface Composition
Forget many internal details on composition.
10
Static Interface Composition
int
int
int
bool
Just remember interface to external environment.
11
A Dynamic Interface
This interface constrains the clients
behavior. eg. our Java extension CHIC (CHecking
Interface Compatibility).
12
Dynamic Interface Compatibility
Sequence of inputs and outputs match up )
compatible
13
Dynamic Interface Incompatibility
14
Dynamic Interface Incompatibility
Output produced but not expected ) not compatible
15
Dynamic Interface Composition
16
Dynamic Interface Composition
17
Dynamic Interface Composition
18
Dynamic Interface Composition
19
Dynamic Interface Composition
20
Interfaces constrain the inputs
Interfaces are Games!
-Player Environment vs. player System. -The
composite interface is the most general strategy
of player Environment to avoid incompatibilities.
21
Dynamic Interface Incompatibility
22
Resource Interface Incompatibility Node Limit
23
Resource Interface Incompatibility Path Limit
24
Resource Interface Incompatibility Path Limit
25
Resource Interface Incompatibility Path Limit
26
Resource Interface Incompatibility Path Limit
27
Resource Interface Incompatibility Path Limit
28
Resource Interface Composition Node Limit
29
Resource Interface Composition Node Limit
30
Resource Interface Composition Node Limit
31
Resource Interface Composition Node Limit
32
Resource Interface Composition Node Limit
33
Resource Interface Composition Path Limit
34
Resource Interface Composition Path Limit
35
Resource Interface Composition Path Limit
36
Resource Interface Composition Path Limit
37
Resource Interface Composition Path Limit
38
Resource Interface Composition Path Limit
39
Resource Interface Composition Path Limit
40
Resource Interface Composition Path Limit
41
Resource Interface Composition Path Limit
42
Resource Interface Composition Path Limit
43
Resource Interface Composition Path Limit
44
Resource Interface Composition Path Limit
45
Resource Interface Composition Path Limit
46
Motor driver in Lego robot
47
Sensornet node with buffer of size 3
48
Two classes of Resource Interfaces
Node Limit Resource Interfaces (e.g. mutex,
limited buffer size, limited peak power) Player
Input must forever avoid states that exceed the
Node Limit.
49
Two classes of Resource Interfaces
Node Limit Resource Interfaces (e.g. mutex,
limited buffer size, limited peak power) Player
Input must forever avoid states that exceed the
Node Limit. Path Limit Resource Interfaces
(e.g. limited battery capacity) Player Input
must forever avoid paths that exceed the Path
Limit.
50
Two synthesis questions
Strategy Synthesis (e.g.
resource scheduler, sensornet routing
algorithm) Given a resource bound, how can
player Input achieve her objective ?
51
Two synthesis questions
Strategy Synthesis (e.g.
resource scheduler, sensornet routing
algorithm) Given a resource bound, how can
player Input achieve her objective ? Resource
Synthesis
(e.g. necessary buffer size,
battery capacity) What is the minimum resource
requirement so that player Input can achieve her
objective ? Game algorithms can be generalized
to answer both.
52
Efficient algorithms
  • Node Limit
  • Strategy synthesis
  • Resource synthesis
  • Path Limit
  • Strategy synthesis
  • Resource synthesis

53
Complexity results
54
Complexity results
55
Example Applications
  • Synthesizing a Scheduling algorithm for a given
    set of threads running on a lego robot
  • Synthesizing a Routing algorithm for a given
    sensornet

56
Resource interfaces
  • Methodology for compositional, state-aware
    analysis of resource usage of open systems
  • Efficient algorithms for finding how a set of
    components can be made to work together using the
    least amount of a scarce resource
  • Algorithms implemented in our tool Chic

57
Software
CHIC JBuilder/ Ptolemy plugin for defining and
checking dynamic, Node limit, Path limit and
resource interfaces.
58
Chic plug-in for JBuilder
59
Chic plug-in for Ptolemy(thanks to Eleftherios
Matsikoudis)
60
Chic plug-in for Ptolemy(thanks to Eleftherios
Matsikoudis)
61
Check out our tool !
  • Chic Checking Interface Compatibility
  • http//www.eecs.berkeley.edu/tah/chic/
  • Thanks for listening ! More Questions ?
Write a Comment
User Comments (0)
About PowerShow.com