learning SCRAM

197 views
Skip to first unread message

D L

unread,
Mar 9, 2017, 3:52:01 PM3/9/17
to SCRAM Support and User Discussions
Searching around for an open source package for failure tree analysis and I found SCRAM. 
I am building a front end tree visualisation GUI to allow users to build failure trees and add data to nodes. 
But I need a back end engine (running on Ubuntu) to return the failure tree probability calculations
via an API.

The SCRAM documents pointed to http://open-psa.org/index.html

However visiting that site .. I see ..

Website unavailable
This site is currently suspended. 
The site administrator has been informed.

What is the status of open-psa.org?

....

Now SCRAM and open-psa appear to support my development plans.
But I am really puzzled why this apparently interesting framework shows very little developers' traffic.

But where do I find the GUI? Does it need to be built?
I don't see it under scram options in command terminal.
Are there any tutorials to follow?

So far I have simply followed installation instructions for Ubuntu 14.04 as explained here ... https://scram-pra.org/doc/installation.html.

Olzhas Rakhimov

unread,
Mar 9, 2017, 4:29:39 PM3/9/17
to D L, SCRAM Support and User Discussions
Hi,

On Thu, Mar 9, 2017 at 12:52 PM, D L <dl6...@gmail.com> wrote:
Searching around for an open source package for failure tree analysis and I found SCRAM. 
I am building a front end tree visualisation GUI to allow users to build failure trees and add data to nodes. 
But I need a back end engine (running on Ubuntu) to return the failure tree probability calculations
via an API.

Have you already built it?
​Is it available ​on GitHub or other platforms?

The SCRAM documents pointed to http://open-psa.org/index.html

However visiting that site .. I see ..

Website unavailable
This site is currently suspended. 
The site administrator has been informed.

What is the status of open-psa.org?
The MEF standard is accessible via: https://open-psa.github.io/mef/
 

....

Now SCRAM and open-psa appear to support my development plans.
But I am really puzzled why this apparently interesting framework shows very little developers' traffic.

​I'd like to know the answer to this question as well :)
 
But where do I find the GUI? Does it need to be built?
I don't see it under scram options in command terminal.
Are there any tutorials to follow?
​The GUI is available with 'scram-gui' when the project is built from the source; however, it is in its infancy.
​It is not yet available in distribution packages in Debian or Ubuntu
due to being underdeveloped and highly unstable.​

The current SCRAM GUI development is in a separate 'gui' branch,
but there's not much progress.
Supporting Open-PSA MEF via GUI is a great challenge;
I am perplexed with internal design approaches for API and GUI.
I'd really welcome more GUI developers to tackle this challenge with a joint effort.

​Regards,
Olzhas​

D L

unread,
Mar 10, 2017, 4:14:33 PM3/10/17
to SCRAM Support and User Discussions
  Olzhas, to answer your question on propsed GUI design:

I preface these notes by clarifying that I am not an expert in FTA although I understand FTA principles.

I have not yet developed a GUI but I set out some thoughts here.

The elements to be developed are:

A user data entry layer using Xforms
An FTA diagram rendering layer
A database layer .. I will be using mongodb because of json used below.

The “back end” FTA calculations are probably well proven and can be drawn from SCRAM.

In my plan, the aim is to offer FTA not through a desktop application (although one could, using Qt http://doc.qt.io/qt-5/), but as a cloud service rendering FTA in the client browser.

Some FTA frameworks I have looked at require Java, Eclipse and other local dependencies. I prefer PHP, javascript, json, svg.

In view of the XML format used by SCRAM, it seems sensible to adopt XForms as data entry for each node.

I've looked around and one example is to use laravel5 https://laravel.com/ as a PHP framework.

For each FTA project there will be a community of users and I envisage a multi dimensional array of data linked to each FTA node.

For visualisation of the FTA diagram there are many frameworks which might be evaluated to create the user interface.

I am planning to use a PHP MVC model and using visualisation scripts in javascript to create FTA diagrams in SVG format.

I will experiment first with jit spacetree.

https://philogb.github.io/jit/static/v20/Jit/Examples/Spacetree/example1.html

This will need to be amended to import FTA nodes which can be developed using Inkscape Vector Graphics Editor.

I have found some javascript renderers of FTA but they require purchase of user licences. I'm staying with open source.

Olzhas Rakhimov

unread,
Mar 10, 2017, 4:43:15 PM3/10/17
to D L, SCRAM Support and User Discussions
Hi,

On Fri, Mar 10, 2017 at 1:14 PM, D L <dl6...@gmail.com> wrote:
  Olzhas, to answer your question on propsed GUI design:

I preface these notes by clarifying that I am not an expert in FTA although I understand FTA principles.

I have not yet developed a GUI but I set out some thoughts here.

The elements to be developed are:

A user data entry layer using Xforms
An FTA diagram rendering layer
A database layer .. I will be using mongodb because of json used below.

The “back end” FTA calculations are probably well proven and can be drawn from SCRAM.

In my plan, the aim is to offer FTA not through a desktop application (although one could, using Qt http://doc.qt.io/qt-5/), but as a cloud service rendering FTA in the client browser.
​I see.
There are couple of open source projects already tackling or having implemented this approach.
You may consider joining that effort without wasting time on repeating their effort.
Take a look at Fuzzed and Robert Maaskant's research.​

​The R packages of https://github.com/jto888 also visualize the analysis constructs in html.​

​As for the SCRAM GUI project,
I am more inclined to develop a solid, cross-platform desktop application.
It is more inline and expected from the traditional professional suites in PRA/PSA.
What concerns me with web based approaches is the problem of confidentiality and security.
On some (most?) PRA/PSA analysis, the input, analysis, and output are secret or private.


Some FTA frameworks I have looked at require Java, Eclipse and other local dependencies. I prefer PHP, javascript, json, svg.

In view of the XML format used by SCRAM, it seems sensible to adopt XForms as data entry for each node.

I've looked around and one example is to use laravel5 https://laravel.com/ as a PHP framework.

For each FTA project there will be a community of users and I envisage a multi dimensional array of data linked to each FTA node.

For visualisation of the FTA diagram there are many frameworks which might be evaluated to create the user interface.

I am planning to use a PHP MVC model and using visualisation scripts in javascript to create FTA diagrams in SVG format.

I will experiment first with jit spacetree.

https://philogb.github.io/jit/static/v20/Jit/Examples/Spacetree/example1.html

This will need to be amended to import FTA nodes which can be developed using Inkscape Vector Graphics Editor.

I have found some javascript renderers of FTA but they require purchase of user licences. I'm staying with open source.

​Sounds like a plan!
Unfortunately, I am not well-versed in web development to give a meaningful review.
You may want to move the discussions to developer's mailing list.

Regards,
Olzhas​

 

D L

unread,
Mar 12, 2017, 8:04:44 AM3/12/17
to SCRAM Support and User Discussions

Olzas, thanks for the references which I read.

Where is the scram-developers list you refer to?

Incidentally, your SCRAM project activity is followed here ...
 
Reply all
Reply to author
Forward
0 new messages