Shaghayegh Tavassoli, Ramtin Khosravi, and Ehsan Khamespanah
Finite Interval-Time Transition System for Real-Time Actors - - PowerPoint PPT Presentation
Finite Interval-Time Transition System for Real-Time Actors - - PowerPoint PPT Presentation
Finite Interval-Time Transition System for Real-Time Actors Shaghayegh Tavassoli, Ramtin Khosravi, and Ehsan Khamespanah TTCS 2020 Introduction 1/23 Introduction Real-time systems 1/23 Introduction Real-time systems
Introduction
1/23
Introduction
Real-time systems
1/23
Introduction
Real-time systems Non-deterministic time behavior
1/23
Introduction
Real-time systems Non-deterministic time behavior Distributed real-time systems
1/23
Introduction
Real-time systems Non-deterministic time behavior Distributed real-time systems Timed-Rebeca
1/23
Purpose of this paper
2/23
Purpose of this paper
Presenting a time-interval extension to Timed-Rebeca
2/23
Purpose of this paper
Presenting a time-interval extension to Timed-Rebeca Introducing Interval-Time Transition System (ITTS)
2/23
Timed-Rebeca
3/23
reactiveclass PingClass(3) { knownrebecs { PongClass pong1; } Statevars { //e.g. int v1, v2; } PingClass() { self.ping() } msgsrv ping() { pong1.pong() after(1); delay(2); } } reactiveclass PongClass(3) { knownrebecs { PingClass ping1; } msgsrv pong() { ping1.ping() after(1); delay(i); } } main { PingClass pi(po) : (); PongClass po(pi) : (); }
Timed-Rebeca model of ping-pong example (from [1] with slight modifications)
Timed-Rebeca with intervals
4/23
reactiveclass PingClass(3) { knownrebecs { PongClass po; } PingClass() { self.ping() } msgsrv ping() { po.pong() after([8,16)); } }
reactiveclass PongClass(3) { knownrebecs { PingClass pi; } PongClass() { self.pong(); } msgsrv pong() { pi.ping() after([8,16)); } } main { PingClass pi(po) : (); PongClass po(pi) : (); }
Interval Time Transition System (ITTS)
Notation and basic definitions States in ITTS Order of events in ITTS Transitions definition
5/23
Notation and basic definition
6/23
Notation and basic definition
Time intervals:
6/23
Notation and basic definition
Time intervals: Updating an interval:
6/23
Notation and basic definition
Time intervals: Updating an interval: Message definition:
6/23
States in ITTS
Local state of an actor with ID x:
7/23
States in ITTS
Local state of an actor with ID x: Global system state:
7/23
Global system state example
8/23
Order of events in ITTS
9/23
Time
gs1:
msg1 msg2 msg3
EE2(gs1) EE3(gs1) EE1(gs1)
Transitions
Message processing
Taking a message from the message bag Internal transition
Time progress (TP)
Type 1 Type 2
10/23
Message processing
11/23
Time
gs1:
msg1 msg2 msg3 Time interval of gs1
Message processing
Taking a message from the message bag
12/23
Message processing
Taking a message from the message bag Internal transition
Assignment statement Send statement 12/23
Message Processing
13/23
Type 1 time progress
14/23
Time
s:
msg1 msg2
gs1:
Time interval of gs1
Type 1 time progress
14/23
Time
s:
msg1 msg2
gs2:
Time interval of gs2
Type 1 time progress
15/23
Type 2 time progress
16/23
Time
s:
msg1 msg2
gs1:
Time interval of gs1
Type 2 time progress
16/23
Time
s:
msg1 msg2
gs2:
Time interval of gs2
Type 2 time progress
17/23 ds(mb,t) changes the lower bound of messages in mb which start earlier than t, to t.
Type 2 time progress
17/23 ds(mb,t) changes the lower bound of messages in mb which start earlier than t, to t.
Making state space finite
No explicit time reset operator
18/23
Making state space finite
No explicit time reset operator Modeling recurrent behavior
18/23
Making state space finite
No explicit time reset operator Modeling recurrent behavior Equivalence between two states in ITTS
18/23
Shift equivalence relation in ITTS
Equivalence of two time intervals:
18/23
Shift equivalence relation in ITTS
Equivalence of two time intervals: Equivalence of two messages:
18/23
Shift equivalence relation in ITTS
Equivalence of two local states of an actor with ID x:
19/23
Shift equivalence relation in ITTS
Equivalence of two local states of an actor with ID x: Equivalence of two global system states:
19/23
Two equivalent states
20/23
Shift equivalence relation in ITTS
Shift equivalence relation in ITTS is a bisimulation
relation:
21/23
Conclusion
22/23
Conclusion
Presenting an extension to Timed-Rebeca
22/23
Conclusion
Presenting an extension to Timed-Rebeca Using Timed-Rebeca with intervals for modeling
nondeterministic time behavior
22/23
Conclusion
Presenting an extension to Timed-Rebeca Using Timed-Rebeca with intervals for modeling
nondeterministic time behavior
Defining the semantics of Timed-Rebeca with intervals
as ITTS
22/23
Conclusion
Presenting an extension to Timed-Rebeca Using Timed-Rebeca with intervals for modeling
nondeterministic time behavior
Defining the semantics of Timed-Rebeca with intervals
as ITTS
Preventing state space explosion using shift equivalence
relation in ITTS
22/23
References
1.
- M. Sirjani and E. Khamespanah, “On time actors,” in Theory
and Practice of Formal Methods, vol. 9660 of Lecture Notes in Computer Science, 2016, pp. 373–392.
23/23