﻿================================================================
 The web service « advancedCutRelation-ITTB »
================================================================


How to run the java program in command line?
===================================================
::
java –Djava.awt.headless =true -jar advancedCutRelation-ITTB.jar options.xml alternatives.xml relation.xml output_relation.xml messages.xml 
where:
- The first entry file corresponds to ``options.xml``. It can be generated by the user or can be generated from the GUI interface in Diviz. Compared to the web service cutRelation, the produced relation is not necessary binary. In fact, some parameters are added. You can choose between classical cut and bipolar cut. The cut level is specified and an output relation is generated. In the case of classical cut, the output relation can be crisp output, binary output or other binary output. When a bipolar cut is taken into account, the output relation can be a bipolar output or other bipolar output.
- The second entry file corresponds to ``alternatives.xml``
- The third entry file corresponds to `` relation.xml``
- The first output file corresponds to the `` output_relation.xml`` file and contains the relation resulting from the cut.
- The second output file corresponds to the ``messages.xml`` file. It is a list of messages generated by the algorithm. It contains information about the execution status as well as a warnings and errors when they occur.

How to run the tests?
=====================

In the entry file ``options.xml`` can be generated in Diviz where you to enter the options available in the GUI interface. 
However, it is also possible to generate it by yourself. In this case, the file ``options.xml`` must be the first entry file.

Afterwards, you have to put the entry files `` alternatives.xml`` and `` relation.xml`` in the correct order.
