Ariane Reference ManualContents1. The User's InterfaceThe user's interface is composed of a global menu, a tool bar and five internal frames (A, B, C, D, E):
2. Building a First GraphTo understand how to create a graph like the one above, follow this sequence of actions:
This graph can be saved into an XML file by using the menu item File::Save. 3. Graph ItemsItems that can be included in graphs are available in the explorer (Frame A). To add an item in a graph, drag the item from the explorer and drop it into the graph editor (Frame B). a. ModelAn item is represented as a box with connection slots.
b. Contextual menuTo open the contextual menu, right-click on the graph item body. The contextual menu lists all actions that can be apply to that item. c. Property windowTo open the property window, click on the graph item body. The property window is used to set the parameter values, show the related documentation, and display the input and output data file contents. 4. Types of Graph ItemItems that can be included in a graph are listed below:
5. PreferencesThe preference dialog box can be opened with the menu item Options::Preferences. The preference dialog box allows you to set color, language and directory preferences. a. Tab GeneralThis tab is used to define the general settings of the interface for instance:
This tab allows you to select the program used to visualize the data file and the program used to display the operator execution status.
This tab is used to custom item link colors and the graph background color. d. Tab ItemThis tab is used to custom item colors. e. Tab PathThis tab is used to define directory paths, for instance:
6. Handling personal operatorsTo add personal operators in Ariane, use the menu item Options::Organize Personal Operators. Unlike the operators of the library which are visible to all users, the personal operators are only visible to their creator. Available operators are executable programs by the way of the operating system. The calling syntax should be specified in the editor using the following convention:
Examples
To define a new operator, fill in the related dialog box: the name and the path of the binary, the number of parameters, input data files and output data files. The ariane/operators.cfg file is an XML file (see Section Customizing for the storage folder) that describes the prototype of each operator as follows: <?xml version="1.0" encoding="ISO-8859-1"?> <ARIANE version="1.1"> <OperatorLibrary> <Operator> <Category>category</Category> <Name>myoperator</Name> <Documentation>http://myspace.org/operators/myoperator.html</Documentation> <Binary>./examples/myoperator.sh</Binary> <Parameters>2</Parameters> <Signature>$0:parameter name=default value;$1:parameter name=default value</Signature> <Inputs>0</Inputs> <Outputs>0</Outputs> </Operator> ... </OperatorLibrary> </ARIANE> 7. Handling subroutinesTo store a subroutine in the current list of subroutines of the explorer, use the contextual menu associated to the subroutine created on the graph you want to store, and use the "store in the explorer" menu item. To organize the subroutines into the explorer, use the menu Options::Organize Subroutines. The ariane/subroutines.cfg file is an XML file (see Section Customizing) that describes the prototype of each subroutines as follows: <Subroutine> <Category>utility</Category> <Name>EdgeSuperimposition</Name> <Documentation>file:software/ariane/edgesuperimposition.html</Documentation> <MacroOperator> <NickName>EdgeSuperimposition</NickName> <Name>macro-operator</Name> <Identifier>1</Identifier> <X-coordinate>199</X-coordinate> <Y-coordinate>108</Y-coordinate> ... </MacroOperator> </Subroutine> You can add new subroutines by using the menu >File::Import subroutines. 8. Generating codeAriane can generate executable scripts that correspond to the current edited graph. Several languages are available; in the current version: Bash, MsDos, Python or Perl. The code generation dialog is accessible by Graph::Generate Code. In the generated script, the Loader and Saver items become arguments of the script as well as Filename and Constant items if they are defined as script parameters (see their related property window). To execute a Bash, MsDos, Pyhton or Perl scripts in a console, use the argument line to specify the list of input and output images. For example, consider the script "application.sh" which uses the two input images "image1.pan, image2.pan" and builds one output image "image3.pan": console> bash application.sh image1.pan image2.pan image3.pan
For each generated script, the option -h displays the script usage and an example of execution:
console> bash application.sh -h
9. Key AssistThese are a list of shortcuts used in the graph editor. They operate on the current selected item:
10. CustomizingAriane is customized with three different files stored in a directory named "ariane": ariane + | - ariane.ini | - operators.cfg + - subroutines.cfg The file ariane.ini is used to save:
The file operators.cfg is used to store:
The file subroutines.cfg is used to store:
This Ariane directory can be located in two different places. Only the first occurrence of the directory is used with respect to the following order:
Any further modifications of the preferences will be stored in the files of the selected directory. Creating a portable customized Ariane distributionTo build a portable Ariane distribution (on a USB key, or CDROM for example), create a folder that contains the ariane.jar (or ariane.exe) file and an ariane folder that contains at least the file ariane.ini and optionally the files operators.cfg and subroutines.cfg. This can be done by creating a copy of the folder {userhomedir}/.greyc/ariane. It is then possible to change the preference for this portable version by the way of the interface. folder + | - ariane.sh | - ariane.jar | - ariane.exe + - ariane + | - ariane.ini | - operators.cfg + - subroutines.cfg Customizing the library of operatorsThe library of executable operators is specified during the first execution of Ariane. It is then possible to change the library from the menu item Options::Customize Library. A convenient library of operators must at least contains the two following folders:
The file ariane.cfg is an XML file that describes the prototype of each executable operator as follows: <ARIANE ariane.version="1.0"> <Library> <Version>Pandore 6.5.0</Version> <DocPath>/doc/operators</DocPath> <Index>operatorsP0.html</Index> <Operator> <Category>arithmetic</Category> <Nom>pabs</Nom> <Documentation>/operatorsP0/pabs.html</Documentation> <Binary>pabs</Binary> <Parameters>0</Parameters> <Inputs>1</Inputs> <Outputs>1</Outputs> </Operator> <Operator> ... </Operator> ... </Library> </ARIANE> |