1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Merge pull request #626 from VILLASframework/update-mail

Update Steffens mail address
This commit is contained in:
Steffen Vogel 2022-12-16 23:44:26 +01:00 committed by GitHub
commit ca3981d2f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
403 changed files with 472 additions and 477 deletions

View file

@ -1,6 +1,6 @@
# Main CMakeLists.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -50,7 +50,7 @@ For other licensing options please consult [Prof. Antonello Monti](mailto:amonti
[![EONERC ACS Logo](doc/pictures/eonerc_logo.png)](http://www.acs.eonerc.rwth-aachen.de)
- Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
- Steffen Vogel <post@steffenvogel.de>
- Marija Stevic <mstevic@eonerc.rwth-aachen.de>
[Institute for Automation of Complex Power Systems (ACS)](http://www.acs.eonerc.rwth-aachen.de)

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,7 +1,7 @@
% Simple MATLAB code to receive VILLAS UDP samples
%
% @author Megha Gupta <meghagupta1191@gmail.com>
% @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
% @author Steffen Vogel <post@steffenvogel.de>
% @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
% @license Apache 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# Makefile.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,7 +1,7 @@
/** Compile-time configuration.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Message related functions
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Message format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Helper functions for sockets.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Configure scheduler.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @author Mathieu Dubé-Dallaire
* @copyright 2003, OPAL-RT Technologies inc
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC

View file

@ -3,7 +3,7 @@
* OPAL-RT's libSystem.a links against some Intel
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Main routine of AsyncIP.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Main routine of AsyncIP.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Message related functions.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Helper functions for sockets.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Configure scheduler.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @author Mathieu Dubé-Dallaire
* @copyright 2003, OPAL-RT Technologies inc
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,7 +1,7 @@
# CMakeLists.txt.
#
# @author Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2018, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -7,7 +7,7 @@ info:
termsOfService: 'https://www.fein-aachen.org/projects/villas-node/'
contact:
name: 'Steffen Vogel'
email: svogel2@eonerc.rwth-aachen.de
email: post@steffenvogel.de
url: 'https://fein-aachen.org/contact/'
license:
name: Apache-2.0

View file

@ -12,7 +12,7 @@ info:
contact:
name: Steffen Vogel
email: svogel2@eonerc.rwth-aachen.de
email: post@steffenvogel.de
url: 'https://fein-aachen.org/contact/'
license:

View file

@ -1,6 +1,6 @@
# CMakeLists.txt.
#
# @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################

View file

@ -8,7 +8,7 @@
# A detailed description of the format can be found here:
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
#
# Author: Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# Author: Steffen Vogel <post@steffenvogel.de>
# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
##

View file

@ -8,7 +8,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -21,7 +21,7 @@
#
# $ ./pipe etc/loopback.conf node2
#
# Author: Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
# Author: Steffen Vogel <post@steffenvogel.de>
# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
##

View file

@ -7,7 +7,7 @@
*
* villas node <(node /etc/villas/node/js/config.js)
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html//Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -25,7 +25,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -8,7 +8,7 @@
villas node <(python3 etc/python/example.py)
@author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
@author Steffen Vogel <post@steffenvogel.de>
@copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
@license Apache 2.0
'''

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* A detailed description of the format can be found here:
* http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -3,7 +3,7 @@
* This example demonstrate how you can use VILLASnode's
* node-types from a Go application.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -42,7 +42,8 @@ func main() {
},
{
Name: "sig2",
}, {
},
{
Name: "sig3",
},
},

View file

@ -1,6 +1,6 @@
/** Bridge code for call C-function pointers from Go code
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** CGo interface for writing node-types in Go
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -42,7 +42,7 @@ func RegisterGoNodeTypes(cb C._go_register_node_factory_cb, pl C._go_plugin_list
//export NewGoNode
func NewGoNode(t *C.char) C.uintptr_t {
var nodeTypes = nodes.NodeTypes()
nodeTypes := nodes.NodeTypes()
typ, ok := nodeTypes[C.GoString(t)]
if !ok {

View file

@ -1,6 +1,6 @@
/** CGo interface for VILLASnode logger
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -11,6 +11,7 @@ package main
// #include <villas/nodes/go.h>
// void bridge_go_logger_log(_go_logger_log_cb cb, _go_logger l, int level, char *msg);
import "C"
import (
"fmt"
"os"
@ -104,6 +105,7 @@ func (l *VillasLogger) Panic(msg string) {
fmt.Println("Paniced")
os.Exit(-1)
}
func (l *VillasLogger) Panicf(format string, args ...interface{}) {
l.Criticalf(format, args...)
fmt.Println("Paniced")

View file

@ -1,6 +1,6 @@
/** Go types for hook configuration.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Go types for node configuration.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -12,8 +12,7 @@ type Node struct {
Type string `json:"type"`
}
type NodeDir struct {
}
type NodeDir struct{}
type NodeLoopbackIn struct {
NodeDir

View file

@ -1,6 +1,6 @@
/** Go types for signal configuration.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Common error types
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -12,9 +12,7 @@ import (
)
import "fmt"
var (
ErrEndOfFile = fmt.Errorf("end-of-file")
)
var ErrEndOfFile = fmt.Errorf("end-of-file")
func ErrorToInt(e error) int {
if e == nil {

View file

@ -1,6 +1,6 @@
/** Wrapper for using libvillas in Go applications.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -10,6 +10,7 @@ package node
// #cgo LDFLAGS: -lvillas
// #include <villas/node.h>
import "C"
import (
"encoding/json"
"fmt"
@ -22,8 +23,10 @@ import (
"git.rwth-aachen.de/acs/public/villas/node/go/pkg/errors"
)
const MAX_SIGNALS = 64
const NUM_HUGEPAGES = 100
const (
MAX_SIGNALS = 64
NUM_HUGEPAGES = 100
)
type Node struct {
inst *C.vnode
@ -80,7 +83,7 @@ func (n *Node) Reverse() error {
}
func (n *Node) Read(cnt int) []Sample {
var csmps = make([]*C.vsample, cnt)
csmps := make([]*C.vsample, cnt)
for i := 0; i < cnt; i++ {
csmps[i] = C.sample_alloc(MAX_SIGNALS)
@ -88,7 +91,7 @@ func (n *Node) Read(cnt int) []Sample {
read := int(C.node_read(n.inst, (**C.vsample)(unsafe.Pointer(&csmps[0])), C.uint(cnt)))
var smps = make([]Sample, read)
smps := make([]Sample, read)
for i := 0; i < read; i++ {
smps[i].FromC(csmps[i])
C.sample_decref(csmps[i])
@ -99,7 +102,7 @@ func (n *Node) Read(cnt int) []Sample {
func (n *Node) Write(smps []Sample) int {
cnt := len(smps)
var csmps = make([]*C.vsample, cnt)
csmps := make([]*C.vsample, cnt)
for i := 0; i < cnt; i++ {
csmps[i] = smps[i].ToC()
@ -112,7 +115,7 @@ func (n *Node) PollFDs() []int {
var cfds [16]C.int
cnt := int(C.node_poll_fds(n.inst, (*C.int)(unsafe.Pointer(&cfds))))
var fds = make([]int, cnt)
fds := make([]int, cnt)
for i := 0; i < cnt; i++ {
fds[i] = int(cfds[i])
}
@ -124,7 +127,7 @@ func (n *Node) NetemFDs() []int {
var cfds [16]C.int
cnt := int(C.node_netem_fds(n.inst, (*C.int)(unsafe.Pointer(&cfds))))
var fds = make([]int, cnt)
fds := make([]int, cnt)
for i := 0; i < cnt; i++ {
fds[i] = int(cfds[i])
}

View file

@ -1,6 +1,6 @@
/** Unit tests for using libvillas in Go code.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -37,7 +37,8 @@ func TestNode(t *testing.T) {
},
{
Name: "sig2",
}, {
},
{
Name: "sig3",
},
},

View file

@ -1,6 +1,6 @@
/** Common code for implementing node-types in Go code.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Little example node-type written in Go code.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Logger interface.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Simple loopback node-type written in Go code.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Node interface.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -51,9 +51,7 @@ type Node interface {
type NodeConfig struct {
Type string `json:"type"`
In struct {
} `json:"in"`
In struct{} `json:"in"`
Out struct {
} `json:"out"`
Out struct{} `json:"out"`
}

View file

@ -1,15 +1,13 @@
/** Node-type registry.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
package nodes
var (
goNodeTypes = map[string]NodeType{}
)
var goNodeTypes = map[string]NodeType{}
type NodeType struct {
Constructor NodeConstructor

View file

@ -1,6 +1,6 @@
/** Exponential backoffs for reconnect timing.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -9,14 +9,12 @@ package webrtc
import "time"
var (
DefaultExponentialBackoff = ExponentialBackoff{
Factor: 1.5,
Maximum: 1 * time.Minute,
Initial: 1 * time.Second,
Duration: 1 * time.Second,
}
)
var DefaultExponentialBackoff = ExponentialBackoff{
Factor: 1.5,
Maximum: 1 * time.Minute,
Initial: 1 * time.Second,
Duration: 1 * time.Second,
}
type ExponentialBackoff struct {
Factor float32

View file

@ -1,6 +1,6 @@
/** Websocket signaling channel for WebRTC.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -135,7 +135,6 @@ func (c *SignalingClient) read() {
msg := &SignalingMessage{}
if err := c.Conn.ReadJSON(msg); err != nil {
if websocket.IsCloseError(err, websocket.CloseGoingAway, websocket.CloseNormalClosure) {
} else {
c.logger.Errorf("Failed to read: %s", err)
}

View file

@ -1,6 +1,6 @@
/** WebRTC node-type.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -19,42 +19,40 @@ import (
"github.com/pion/webrtc/v3"
)
var (
DefaultConfig = Config{
Server: &url.URL{
Scheme: "wss",
Host: "villas.k8s.eonerc.rwth-aachen.de",
Path: "/ws/signaling",
},
Wait: true,
MaxRetransmits: 0,
Ordered: false,
WebRTC: webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
{
URLs: []string{"stun:stun.l.google.com:19302"},
var DefaultConfig = Config{
Server: &url.URL{
Scheme: "wss",
Host: "villas.k8s.eonerc.rwth-aachen.de",
Path: "/ws/signaling",
},
Wait: true,
MaxRetransmits: 0,
Ordered: false,
WebRTC: webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
{
URLs: []string{"stun:stun.l.google.com:19302"},
},
{
URLs: []string{
"stun:stun.0l.de",
},
{
URLs: []string{
"stun:stun.0l.de",
},
CredentialType: webrtc.ICECredentialTypePassword,
Username: "villas",
Credential: "villas",
},
{
URLs: []string{
"turn:turn.0l.de?transport=udp",
"turn:turn.0l.de?transport=tcp",
},
CredentialType: webrtc.ICECredentialTypePassword,
Username: "villas",
Credential: "villas",
CredentialType: webrtc.ICECredentialTypePassword,
Username: "villas",
Credential: "villas",
},
{
URLs: []string{
"turn:turn.0l.de?transport=udp",
"turn:turn.0l.de?transport=tcp",
},
CredentialType: webrtc.ICECredentialTypePassword,
Username: "villas",
Credential: "villas",
},
},
}
)
},
}
type Node struct {
nodes.BaseNode
@ -67,9 +65,9 @@ type Config struct {
Server *url.URL
Session string
Wait bool
Wait bool
MaxRetransmits uint16
Ordered bool
Ordered bool
WebRTC webrtc.Configuration
}
@ -88,7 +86,7 @@ func (n *Node) Parse(c []byte) error {
Wait *bool `json:"wait,omitemty"`
MaxRetransmits *uint16 `json:"max_retransmits,omitempty"`
Ordered *bool `json:"ordered,omitempty"`
Ice *struct {
Ice *struct {
Servers []struct {
URLs []string `json:"urls,omitempty"`
Username *string `json:"username,omitempty"`

View file

@ -1,6 +1,6 @@
/** Types for WebRTC node-type.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** WebRTC peer connection handling.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/
@ -9,8 +9,8 @@ package webrtc
import (
"fmt"
"sync"
"path"
"sync"
"git.rwth-aachen.de/acs/public/villas/node/go/pkg/nodes"
"github.com/pion/webrtc/v3"
@ -90,7 +90,7 @@ func (pc *PeerConnection) createPeerConnection() (*webrtc.PeerConnection, error)
func (pc *PeerConnection) createDataChannel() (*webrtc.DataChannel, error) {
dc, err := pc.CreateDataChannel("villas", &webrtc.DataChannelInit{
Ordered: &pc.config.Ordered,
Ordered: &pc.config.Ordered,
MaxRetransmits: &pc.config.MaxRetransmits,
})
if err != nil {

View file

@ -1,6 +1,6 @@
/** Sample datastructure.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** REST-API-releated functions.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** API Request.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** API Request for nodes.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** API Request for paths.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Universal Data-exchange API request.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** API response.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** API session.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Capabilities
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Configuration file parsing.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Helpers for configuration parsers.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Read / write sample data in different formats.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Comma-separated values.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** JSON serializtion sample data.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** JSON serializtion for Kafka schema/payloads.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** JSON serializtion for RESERVE project.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Line-based formats
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Message related functions.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Message format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** A custom format for OPAL-RTs AsyncIP example
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Protobuf IO format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** RAW IO format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** The VILLASframework sample format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** Message related functions
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,7 +1,7 @@
/** The VILLASframework sample format
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -5,7 +5,7 @@
* or alter the sample contents.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -3,7 +3,7 @@
* This file includes some examples.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
**********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Decimate hook.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Rate-limiting hook.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -1,6 +1,6 @@
/** Lua expressions hook.
*
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

View file

@ -4,7 +4,7 @@
* Most of them make use of Linux-specific APIs.
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
* @license Apache 2.0
*********************************************************************************/

Some files were not shown because too many files have changed in this diff Show more