Skip to content

wasowski/ClaferConfigurator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

182 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClaferConfigurator

v0.3.6.1

An interactive, web-based, configurator for attributed feature models with inheritance subset of Clafer. The configurator provides a novel approach to feature configuration, whereby the configurer works with multiple correct configurations at the same time instead of working with a single configuration, making configuration steps, and resolving configuration conflicts. When working with a single configuration, the configurer is often not aware of the impact of their configuration actions, and when conflicts arise, they have great difficulty resolving the conflicts. In contrast, in ClaferConfigurator, the configurers always see only correct configurations and can explore them using filtering, ordering, highlighting of the differences, and creating more configurations on demand.

Live demo

  • Master branch (stable and released): Try me!
  • Develop branch (with newest features, but not guaranteed to be stable): Try me!

If the demo is down or you encounter a bug, please email Michal Antkiewicz.

Background

Clafer is a general-purpose lightweight structural modeling language developed at GSD Lab, University of Waterloo. Clafer can be used for domain modeling, product-line modeling and multi-objective optimization with respect to various one or more optimization goals.

Functions

  1. Provides a web based GUI for interaction with claferIG.
  2. Allows to compare and analyze product configurations.
  3. Facilitates configuration of clafer models.

Nature

The ClaferConfigurator is a web-based application. Its server side (implemented with Node.JS) only runs the chosen backend passes back its output. The client-side is implemented using Javascript/HTML and provides configuration functionality.

Contributors

  • Neil Vincent Redman, co-op student Jan-Apr 2013. Main developer.
  • Michał Antkiewicz, Research Engineer. Requirements, development, architecture, testing, technology transfer.
  • Alexandr Murashkin, MSc. Candidate. Developer, transition to the platform, new improvements, multiple backends.

Getting Binaries

Binary distributions of the release 0.3.6.1 of Clafer Tools for Windows, Mac, and Linux, can be downloaded from Clafer Tools - Binary Distributions. There you can get binaries for Clafer Compiler, ClaferIG and the ClaferChocoIG backend.

Dependencies for running

Installation

Core

  1. Download (git clone) ClaferConfigurator to some directory <target directory>
  2. Go to <target directory>/ClaferConfigurator and execute

git submodule init

git submodule update

This will install the platform

  1. Go to <target directory>/ClaferConfigurator/Server and execute

npm install

This will download all the required Node.JS modules.

  1. Install the necessary backends using the steps below.

Backend: ClaferIG

This assumes you use the default configuration <target directory>/ClaferConfigurator/Server/Backends/backends.json file.

  1. Install ClaferIG following the installation instructions.

Backend: ClaferChocoIG

This assumes you use the default configuration <target directory>/ClaferConfigurator/Server/Backends/backends.json file.

  1. Install Java 7+.

  2. Copy the binary of ClaferChocoIG (claferchocoig-0.3.6.1-jar-with-dependencies.jar) into the folder <target directory>/ChocoIG.

Backend: ClaferZ3

This assumes you use the default configuration <target directory>/ClaferConfigurator/Server/Backends/backends.json file.

  1. Refer to the ClaferZ3 installation requirements. This should install Python 3, PIP and Z3.

  2. Install ClaferZ3 into the folder <target directory>/ClaferZ3.

Settings

  1. Make sure the port 8193 is free, or change the value of the key port in Server/config.json: "port" = "8193" to any free one.

  2. Make sure clafer, node, python, and java are in PATH environment variables, so they can be executed without any path prefixes.

  3. Running the following commands should produce the following results or later version:

clafer -V

Clafer v0.3.6.1

java -version

java version 1.7.0_51

node -v

v0.10.20

  1. Make sure uploads folder is accessible for writing, since temporary files will be stored there.

  2. If you use Shell scipts (.sh) for running, make sure the scripts have Execute permissions.

Running

  • To run the server in a standard mode, execute

cd <target directory>/ClaferConfigurator/Server/

node ClaferConfigurator.js

  • If you use Node Supervisor under Linux, you can execute

cd <target directory>/ClaferConfigurator/Server/commons

sh start.sh

Then you can go to any browser and type http://localhost:[port]/ and open any Clafer file with objectives in it.

Trying an Example

  • Choose Adaptive Cruise Control Example example in the dropdown box in the upper-left corner of the tool window.
  • Press Compile button right in the front of the drop down list.
  • Once you see the compilation is complete, go to Instance Generator view and press Run there (the default backend is Choco-based IG (IG + MOO)).
  • The Feature and Quality Matrix view should show the first 10 generated instances.

Important: Branches must correspond

All related projects are following the simultaneous release model. The branch master contains releases, whereas the branch develop contains code under development. When building the tools, the branches should match. Releases from branches master are guaranteed to work well together. Development versions from branches develop should work well together but this might not always be the case.

Need help?

About

An interactive, web-based, configurator for Clafer models.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 84.9%
  • HTML 11.6%
  • CSS 3.5%