JCSProB: Implementing Integrated Formal Specifications in Concurrent Java
JCSProB: Implementing Integrated Formal Specifications in Concurrent Java
The ProB model checker provides tool support for an integrated formal specification approach, which combines the classical state-based B language with the event-based process algebra CSP. In this paper, we present a developing strategy for implementing such a combined ProB specification as a concurrent Java program. A Java implementation of the combined B and CSP model has been developed using a similar approach to JCSP. A set of translation rules relates the formal model to its Java implementation, and we also provide a translation tool JCSProB to automatically generate a Java program from a ProB specification. To demonstrate and exercise the tool, several B/CSP models, varying both in syntactic structure and behavioural/concurrency properties, are translated by the tool. The models manifest the presence and absence of various safety, deadlock, and bounded fairness properties; the generated Java code is shown to faithfully reproduce them. Run-time safety and bounded fairness checking is also demonstrated. The Java programs are discussed to demonstrate our implementation of the abstract B/CSP concurrency model in Java. In conclusion we consider the effectiveness and generality of the implementation strategy.
Integrated Formal Methods, Java Concurrency, Implementation
978-1-58603-767-3
67-88
Yang, Letu
38970483-a8c4-4d15-ab70-3f2edb3cb66b
Poppleton, Michael
4c60e63f-188c-4636-98b9-de8a42789b1b
McEwan, A.A.
368997fc-5b16-4934-bfe8-8ff06ab34ef2
Schneider, S.
a8d51a4f-85c1-47b5-bbd9-6ed539cb1cb7
Ifill, W.
cb162ccc-d33c-4fdf-b57c-45dd5ba3a20b
Welch, P.H.
2c6afde6-10a9-4413-9184-31b852a2fd1a
2007
Yang, Letu
38970483-a8c4-4d15-ab70-3f2edb3cb66b
Poppleton, Michael
4c60e63f-188c-4636-98b9-de8a42789b1b
McEwan, A.A.
368997fc-5b16-4934-bfe8-8ff06ab34ef2
Schneider, S.
a8d51a4f-85c1-47b5-bbd9-6ed539cb1cb7
Ifill, W.
cb162ccc-d33c-4fdf-b57c-45dd5ba3a20b
Welch, P.H.
2c6afde6-10a9-4413-9184-31b852a2fd1a
Yang, Letu and Poppleton, Michael
(2007)
JCSProB: Implementing Integrated Formal Specifications in Concurrent Java.
McEwan, A.A., Schneider, S., Ifill, W. and Welch, P.H.
(eds.)
Communicating Process Architectures, Surrey.
.
Record type:
Conference or Workshop Item
(Paper)
Abstract
The ProB model checker provides tool support for an integrated formal specification approach, which combines the classical state-based B language with the event-based process algebra CSP. In this paper, we present a developing strategy for implementing such a combined ProB specification as a concurrent Java program. A Java implementation of the combined B and CSP model has been developed using a similar approach to JCSP. A set of translation rules relates the formal model to its Java implementation, and we also provide a translation tool JCSProB to automatically generate a Java program from a ProB specification. To demonstrate and exercise the tool, several B/CSP models, varying both in syntactic structure and behavioural/concurrency properties, are translated by the tool. The models manifest the presence and absence of various safety, deadlock, and bounded fairness properties; the generated Java code is shown to faithfully reproduce them. Run-time safety and bounded fairness checking is also demonstrated. The Java programs are discussed to demonstrate our implementation of the abstract B/CSP concurrency model in Java. In conclusion we consider the effectiveness and generality of the implementation strategy.
More information
Published date: 2007
Additional Information:
Best Student Paper Prize of CPA 2007 Event Dates: 9 July, 2007
Venue - Dates:
Communicating Process Architectures, Surrey, 2007-07-09
Keywords:
Integrated Formal Methods, Java Concurrency, Implementation
Organisations:
Electronic & Software Systems
Identifiers
Local EPrints ID: 264300
URI: http://eprints.soton.ac.uk/id/eprint/264300
ISBN: 978-1-58603-767-3
PURE UUID: 5e678c20-9b6d-4cd0-81d4-a804679628b1
Catalogue record
Date deposited: 12 Jul 2007
Last modified: 14 Mar 2024 07:47
Export record
Contributors
Author:
Letu Yang
Author:
Michael Poppleton
Editor:
A.A. McEwan
Editor:
S. Schneider
Editor:
W. Ifill
Editor:
P.H. Welch
Download statistics
Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.
View more statistics