After creating all necessary modules, they have to be connected through their IOs. As mentioned before there are two directions of data flow: Up and Down. In order to consider this a module has a variety of differnt functions that create internal up and down edges. The most simple way to connect two modules is, if their corresponig IOs are equivalent:
. : AddEdgeDown(module_a,module_b); . :
This function trys to connect the controller output of module_a with controller input of module_b. This will only work, if the dimensions of these IOs are equal.
Another possibility is to name the corresponding IOs individually. We recommend to prefer this function as it is the safest against changes of the involved IOs.
. : AddEdgeDown(module_a,module_b, 2, mModuleA::eCO_JOKER, mModuleB::eCI_CARD1); mModuleA::eCO_ASS, mModuleB::eCI_CARD2); . :
As parameters the two modules (from and to), the dimension of the edge and the enums of the corresponing IOs have to be specified.
If modules don't match together or indices of IOs are incorrect, the program creates some error messages, that explain where and which errors occured during edge creation.