#!/bin/bash
#
# Configuration file for centrality
#
# Usage: ./t2plconf
#
# Enter configurations items as follows:
#
#   "NAME" "TYPE" "DEPENDENCIES" "DESCRIPTION"
#
#   - TYPE can be:
#       - check (boolean),
#       - radio (set of values),
#       - range (min <= val <= max)
#       - text
#
#   - DEPENDENCIES MUST be numeric, e.g., "A == 1 && (B < 4 || C >= 1)"
#
#   - DESCRIPTION for type 'check' MUST NOT contain tabs ('\t')
#   - DESCRIPTION for TYPE 'range' MUST NOT contain '\t' or ':'
#   - DESCRIPTION for TYPE 'radio' MUST NOT contain '\t', ':' or ';'
#   - DESCRIPTION for TYPE 'text'  MUST NOT contain '\t'
#
#   - DESCRIPTION MUST be formatted according to the type (see examples below):
#       - check: description
#       - radio: description ';' val1 ':' description1 ';' valN ':' descriptionN
#       - range: description ':' min ' ' max
#       - text : description

ITEMS=(
    CENTRALITY_MATRIXENTRIES radio ""
        "Matrix entries; \
            0: {0,1} in matrix; \
            1: Total number of flows in matrix; \
            2: Bytes sent; \
            3: Bytes asymmetry; \
            4: Packets sent; \
            5: Packets asymmetry"

    CENTRALITY_TIME_CALC range ""
        "Computation interval (0: only one calculation at application terminate; \
         int>0: calculate every (int) seconds (dependent on dump duration)): 0 255"

    CENTRALITY_MATRIXFILE check "" "Write a file with triplet matrix"

    CENTRALITY_TRAVIZ check "" "Traviz output mode"

    CENTRALITY_IP_HEX radio ""
           "Representation of IP addresses; \
                   0: Integer; \
                   1: Hexadecimal; \
                   2: Dotted decimal format"

    CENTRALITY_SUFFIX text "" "Suffix for centrality output file"

    MATRIX_SUFFIX text "CENTRALITY_MATRIXFILE == 1" "Suffix for matrix output file"
)

# Source the main config file
source ../scripts/t2conf/t2plconf
