User-friendly ways to capture temporal properties:
* Properties Sequence Chart (PSC): a scenario-based visual language for specifying temporal properties which balances simplicity of use and expressive power
* Qualitative, Real-Time, and Probabilistic Property Specification Patterns
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
User-friendly ways to capture temporal properties - Seminar at KTH, June 2015
1. User-friendly ways to capture temporal
properties
KTH – June 2015, Stockholm, Sweden
Patrizio Pelliccione – Docent in software engineering, Chalmers|GU
www.patriziopelliccione.com
2. Properties Sequence Chart (PSC)
• Temporal
Proper,es
are
typically
specified
as
formulae
in
suitable
temporal
logics
• The
inherent
complexity
of
Temporal
Logic
formulae
may
induce
to
specify
proper,es
in
a
wrong
way
Problem
space
• Proper,es
Sequence
Chart
(PSC)
is
a
scenario-‐based
visual
language
for
specifying
temporal
proper,es
which
balances
simplicity
of
use
and
expressive
power
Solu,on
space
Marco
Au)li,
Paola
Inverardi,
Patrizio
Pelliccione
(2007)
Graphical
scenarios
for
specifying
temporal
proper3es:
an
automated
approach
,
Automated
SoIware
Engg.
14:
3.
293-‐340
hQp://www.di.univaq.it/psc/
15. Properties Sequence Chart (PSC)
If
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h,
then
the
driver
is
alerted
via
an
audible
signal
16. Properties Sequence Chart (PSC)
If
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h,
then
the
driver
is
alerted
via
an
audible
signal
Speed
controller
Driver
controller
e:
speed
>
65km/h
17. Properties Sequence Chart (PSC)
If
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h,
then
the
driver
is
alerted
via
an
audible
signal
Speed
controller
Lane
dep.
controller
Driver
controller
e:
speed
>
65km/h
e:
distance
decreases
18. Properties Sequence Chart (PSC)
If
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h,
then
the
driver
is
alerted
via
an
audible
signal
Speed
controller
Lane
dep.
controller
Driver
controller
e:
speed
>
65km/h
e:
distance
decreases
speed
>=
60km/h
19. Properties Sequence Chart (PSC)
If
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h,
then
the
driver
is
alerted
via
an
audible
signal
Alert
system
Speed
controller
Lane
dep.
controller
Driver
controller
e:
speed
>
65km/h
e:
distance
decreases
r:
alerted
speed
>=
60km/h
speed
>=
60km/h
20. PSC impact
• Extensions and uses of PSC
– Timed Property Sequence Chart (TPSC) -
http://dx.doi.org/10.1016/j.jss.2009.09.013
– Probabilistic Timed Property Sequence Chart (PTPSC) -
http://dx.doi.org/10.1109/ASE.2009.56
– Monitoring of PSC and TPSC properties -
http://dx.doi.org/10.1007/978-3-642-16612-9_39
– Monitoring of PTPSC - http://onlinelibrary.wiley.com/doi/10.1002/spe.1038/abstract
PSC
is
the
nota,on
used
by
SDL-‐RT
V2.3
standard
to
express
temporal
proper,es
PSC
is
the
nota,on
used
by
MSC
Tracer
to
express
temporal
proper,es
hQp://www.sdl-‐rt.org/
hQp://www.pragmadev.com/product/tracing.html
PSC
is
one
of
the
nota,ons
adopted
within
the
Presto
project
(ARTEMIS-‐2010-‐1-‐269362)
hQp://www.presto-‐embedded.eu/
21. Marco
Au)li,
Lars
Grunske,
Markus
Lumpe,
Patrizio
Pelliccione,
and
Antony
Tang
(2015)
Aligning
Qualita3ve,
Real-‐Time,
and
Probabilis3c
Property
Specifica3on
PaBerns
Using
a
Structured
English
Grammar,
IEEE
Transac,ons
on
SoIware
Engineering
(TSE),
To
appear.
22. Property specification patterns
Property
paQerns
Occurrence
Order
Absence
Universality
Existence
Bounded
Existence
Precedence
Response
Chain
Precedence
Chain
Response
Ma>hew
B.
Dwyer,
George
S.
Avrunin,
and
James
C.
Corbe>.
1999.
PaBerns
in
property
specifica3ons
for
finite-‐state
verifica3on.
In
Proceedings
of
the
21st
interna)onal
conference
on
SoKware
engineering
(ICSE
'99).
ACM,
New
York,
NY,
USA,
411-‐420.
24. An example: Response pattern
• To describe cause-effect relationships between a pair of
events/states. An occurrence of the first, the cause, must
be followed by an occurrence of the second, the effect.
Also known as Follows and Leads-to.
25. Real-time specification patterns
Sascha
Konrad
and
Be>y
H.
C.
Cheng.
2005.
Real-‐3me
specifica3on
paBerns.
In
Proceedings
of
the
27th
interna)onal
conference
on
SoKware
engineering
(ICSE
'05).
ACM,
New
York,
NY,
USA,
372-‐381.
27. Probabilistic Property patterns
Lars
Grunske.
2008.
Specifica3on
paBerns
for
probabilis3c
quality
proper3es.
In
Proceedings
of
the
30th
interna)onal
conference
on
SoKware
engineering
(ICSE
'08).
ACM,
New
York,
NY,
USA,
31-‐40.
37. Example
The
driver
is
alerted
via
an
audible
signal
if
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h.
38. Example
If
the
driver
is
alerted
via
an
audible
signal
then
it
must
have
been
the
case
that
the
speed
of
the
car
was
greater
than
65km/h
and
aGerwards
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly
and
aGerwards
the
speed
of
the
car
was
not
decre.9%.
The
driver
is
alerted
via
an
audible
signal
if
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h.
39. Example
If
the
driver
is
alerted
via
an
audible
signal
then
it
must
have
been
the
case
that
the
speed
of
the
car
was
greater
than
65km/h
and
aGerwards
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly
without
the
speed
of
the
car
was
decreased
under
60km/h
in
between
The
driver
is
alerted
via
an
audible
signal
if
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h.
40. Example
If
the
driver
is
alerted
via
an
audible
signal
then
it
must
have
been
the
case
that
the
speed
of
the
car
was
greater
than
65km/h
and
aGerwards
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly
without
the
speed
of
the
car
was
decreased
under
60km/h
in
between.
The
driver
is
alerted
via
an
audible
signal
if
the
speed
of
the
car
was
greater
than
65km/h,
the
distance
between
the
car
and
the
road
lane
markings
decreased
rapidly,
and,
in
the
meanwhile,
the
speed
of
the
car
was
not
decreased
under
60km/h.
41. hQp://ps-‐paQerns.wikidot.com/
“A
paQern
system
does
not
belong
to
an
individual,
but
to
the
community
of
experts
and
prac,,oners
who
contribute
to
and
use
it.”
(Dwyer
et
al.)