Commit e5c7e713 authored by Milosz Malczak's avatar Milosz Malczak

server: modified comments

parent d5118bc5
...@@ -5,10 +5,6 @@ logger = logging.getLogger(__name__) ...@@ -5,10 +5,6 @@ logger = logging.getLogger(__name__)
class ConnectionManager(): class ConnectionManager():
"""
Manages connections with all nodes. Provides access to the nodes for other
classes
"""
def __init__(self): def __init__(self):
self.__user_apps = dict() self.__user_apps = dict()
......
...@@ -3,7 +3,7 @@ expose.py ...@@ -3,7 +3,7 @@ expose.py
============================================ ============================================
Exposes the functionalities of the Server to Device Applications and to Exposes the functionalities of the Server to Device Applications and to
User Applications. All communication with other applications is done using User Applications. All communication with other applications is done using
Expose class. the Expose class.
For communication with the nodes it uses `ZeroMQ <https://zeromq.org/>`_ For communication with the nodes it uses `ZeroMQ <https://zeromq.org/>`_
sockets. sockets.
...@@ -241,7 +241,7 @@ class Expose(): ...@@ -241,7 +241,7 @@ class Expose():
and from Zeroconf (zeroconf_listener). and from Zeroconf (zeroconf_listener).
The monitor socket is used to monitor the state of ZeroMQ connection. The monitor socket is used to monitor the state of ZeroMQ connection.
The message contain the name of the method to call. Since communication The message contains the name of the method to call. Since communication
with the User Applications is synchronous, the socket_user_listener with the User Applications is synchronous, the socket_user_listener
sends back the data returned by the called funciton. In case of sends back the data returned by the called funciton. In case of
socket_ADC_listener and zeroconf_listener the communication is socket_ADC_listener and zeroconf_listener the communication is
......
...@@ -12,17 +12,6 @@ class HorizontalSettingsError(Exception): ...@@ -12,17 +12,6 @@ class HorizontalSettingsError(Exception):
class UserApplication(): class UserApplication():
"""
It is a model of the User Application.
All changes in the User Application are reflected here(adding/removing
channels, triggers, starting/stopping acquisition, changing the acquisition
length.
All changes that affect the User Apllication are done through this class
(availability of the devices, acquisition data)
"""
def __init__(self, name, user_app_addr, user_app_port, connection_manager): def __init__(self, name, user_app_addr, user_app_port, connection_manager):
self.name = name self.name = name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment