Skip to content

mkleine/cspk4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CSPK4J, CSP kernel for Java
Moritz Kleine, mkleine at cs tu-berlin de

The CSPK4J framework offers CSP concurrency for Java. It supports a
subset of CSPm [FDR] according to CSPk4J.g (ANTLR v3 grammar).

The semantics behind the CSPK4J framework ist described in

    Moritz Kleine and J W Sanders. Simulating truly concurrent CSP.
    Technical Report, UNU-IIST, 2010.
    http://www.iist.unu.edu/www/docs/techreports/reports/report434.pdf

======================================================================

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.


----------------------------------------------------------------------

Requirements

Java > 1.5
ANTLR 3.2

----------------------------------------------------------------------

Running the Examples

Assuming that the CSPK4J framework and antlr 3.2 are on your
classpath,

>java org.cspk4j.example.InteractiveConsoleExampleRunner

lets you choose one of the built-in examples and runs them. The
"semaphore" example is the example application described in
 
   Moritz Kleine and Steffen Helke. Low-Level Code Verification Based
   on CSP Models. Brazilian Symposium on Formal Methods (SBMF 2009).

The following command launches the CSPm script with the default
example configuration:

> java org.cspk4j.example.ScriptExampleRunner

Note that only single-operator processes are supported and that the
CSPm Skript must not contain any functional parts.

----------------------------------------------------------------------

CSPK4J Workflow Server Prototype

A Workflow Server protoype serves as case study for CSPK4J. It is
presented in

    Moritz Kleine and Thomas Göthel. Specification, Verification and
    Implementation of Business Processes using CSP. 4th IEEE 
    International Symposium on Theoretical Aspects of Software 
    Engineering (TASE 2010).

The zip file contains the necessary jars in the output directory. Two
example process definitions reside in the tmp directory. The launch
script must be adjusted so that FDR can be found, otherwise the 
workflow server won't start.

About

CSP based concurrency framework for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages