Skip to content

Nerlnet Design

zivmo99 edited this page Jun 15, 2021 · 15 revisions

Add here image of nerlnet structure

Components:

Python Server:

Main Server:

Router:

Source:

ClientStatem:

nerlNetStatem:

The state machine of the worker. Gets train/predict/create commands from the main server and calls erlModule functions accordingly sends back the results threw client Statem.

ErlBridge (NIF):

Contains: NerlNIF.cpp - The NIF itself. Converts Erlang commands to C++. Opens new threads for train/predict functions. Creates new modules and maintains the bridgeController singleton. bridgeController.h - Singleton. Maintains all the modules and their MID in a map. nifpp.h - External library for that wraps erlang nif with C++ abilities. erlModule.erl - Erland side of the NerlNIF. Contains train/predict/create functions calls from the Erlang side.