Next: To repeat an algorithm
Up: Algorithm
Previous: To create an algorithm
  Contents
To condition a definition, choose the command CREATE CONDITION in the
EDIT menu of the definition window, this will open a window for text
edition in order to input the name and the values the conditioning may
take. The name of the conditioning must be the name of an existing
input port of type integer. The conditioning is a list, where each
element, separated by spaces, is the name of the conditioning port and
the value it may take, separated by ``='' (e.g. ``cond=1 cond=2
cond=3''). This specific port must be unique for a definition. Once
you have created a conditioning, the
conditioning port is colored yellow.
Each value the conditioning may take, will have a corresponding button
at the top of the definition window. After selecting one value by
clicking on the corresponding button, you will have to construct a
graph. This graph describes the algorithm executed when the
conditioning takes this value. During the execution, only the graph
corresponding to the value that the conditioning port will have, will
be executed.
Next: To repeat an algorithm
Up: Algorithm
Previous: To create an algorithm
  Contents
Julien Forget
2003-03-21