# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0

nodes = {
    opal_node = {					# The server can be started as an Asynchronous process
        type	= "opal",			# from within an OPAL-RT model.

    ### The following settings are specific to the opal node-type!! ###

        send_id	= 1,				# It's possible to have multiple send / recv Icons per model
        recv_id	= 1,				# Specify the ID here.
        reply = true
    },
    file_node = {
        type	= "file",

    ### The following settings are specific to the file node-type!! ###

        uri = "logs/input.log",			# These options specify the path prefix where the the files are stored

        in = {
            epoch_mode = "direct"		# One of: direct (default), wait, relative, absolute
            epoch = 10			# The interpretation of this value depends on epoch_mode (default is 0).
                            # Consult the documentation of a full explanation

            rate = 2.0			# A constant rate at which the lines of the input files should be read
                            # A missing or zero value will use the timestamp in the first column
                            # of the file to determine the pause between consecutive lines.

            buffer_size = 1000000

            eof = "rewind"	# One of: rewind, exit (default) or wait
        },
        out = {
            flush = true
            buffer_size = 1000000
        }
    }
}
