Closed DavidPL1 closed 5 years ago
Approach:
Create util.actionSerializer that is able to serialize all kinds of action calls to and all responses from a hyperion backend.
Create new Server class wrapping a ControlCenter which deserializes action calls received over tcp and dispatches to the control center. In case an action call returns data, the data has to be serialized and sent to the client the request came from. (Check results are interpreted as events, thus (like events received by the monitoring thread) they will be sent to all connected clients).
Create new class deriving from manager.AbstractController named RemoteControllerInterface that connects to a running backend. 3.2 RemoteControllerInterface serializes action calls and sends them to the backend over tcp 3.3 RemoteControllerInterface listens for messages from the backend and interprets them by deserializing
Change structure as shown by the below diagram, to split UI from backend.
This way multiple UIs can be started and won't interfere with each other, but all display the same state.