Skip to content

This project aims at developing an algorithm for the automated transfer of structured requirements / pseudo code into Cause Effect Graphs (CEG). The algorithm comprises two functionalities: 1) syntax analysis of the pseudo code by means of ANTLR and 2) semantic analysis of the parse tree by a implemented visitor pattern.

Notifications You must be signed in to change notification settings

fischJan/Automated_CEG_Creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated_CEG_Creation

This project aims at developing an algorithm for the automated transfer of structured requirements / pseudo code into Cause Effect Graphs (CEG). The algorithm comprises two functionalities: 1) syntax analysis of the pseudo code by means of ANTLR and 2) semantic analysis of the parse tree by a implemented visitor pattern. The exact functionality of our algorithm is described in our paper "Automated Generation of Test Models from Semi-Structured Requirements" published at the RE conference in South Korea. You can access the paper here: https://ieeexplore.ieee.org/abstract/document/8933802

How to test the code?

  1. Clone the repository to your machine and import it to your favorite IDE (e.g. eclipse). Make sure to add all .jars to the classpath within the build path setting of the Parser folder.
  2. Open the folder "MyVisitor" and open the file "example.txt" (make sure to place the .txt file in your root path).
  3. Add the pseudo code section that should be transformed into a CEG (ATTENTION: we implemented a loosely defined grammar in order to avoid limiting the vocabulary too much. However, you should use the logical constructs "IF", "THEN", "ELSE", "AND" etc. to structure your requirement. For a more detailed explanation please refer to the defined grammar within the "Parser" folder.)
  4. After inserting the pseudo code section, just start the main method.
  5. The method creates the parse tree and traverses the tree to create the corresponding CEG.
  6. The final CEG is given in a .dot file. Just copy the content of this file into a "Graphviz" editor (e.g. https://dreampuf.github.io/GraphvizOnline/) and enjoy the CEG.

Ideas for improvement?

We welcome any kind of feedback! Just shoot me a email or private message.

About

This project aims at developing an algorithm for the automated transfer of structured requirements / pseudo code into Cause Effect Graphs (CEG). The algorithm comprises two functionalities: 1) syntax analysis of the pseudo code by means of ANTLR and 2) semantic analysis of the parse tree by a implemented visitor pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors