Skip to content
jgrunert edited this page Nov 11, 2015 · 19 revisions

ZSDN provides a module build system, based on CMake, to build the controller modules.

Module Sets

A module set defines a set of controller modules. The definition consists of two files:

  • Module File List .txt: Defines a list of all module types in this module set. The first line contains the module description, followed by the list of modules, one in each line. C++ modules with the prefix "cpp/", Java modules with the prefix "java/".
    • Example custom.txt:
        Your description.
        cpp/MyCppModule
        java/MyJavaModule
      
  • Module Run Script <name.sh>: Script define how to run the modules. This is useful for running modules on a single node. You can define which modules to run. You can define the module run parameters and start modules one or multiple times. The parameter $1 defines the module executable folder and the parameter $2 the configuration file.
    • Example custom.sh:
        ...
         modulStarts=(
      "$1/MyCppModule $2"
      "java -jar $1/MyJavaModule.jar")
      
        # Run module starter
        java -jar $1/module-starter.jar "${modulStarts[@]}"
      

Clone this wiki locally