Documentation should be done

This commit is contained in:
Daniel Kluge
2023-11-02 18:29:04 +01:00
parent 591cf6662b
commit 819a0b1a72
21 changed files with 571 additions and 29 deletions
+13
View File
@@ -32,28 +32,40 @@ type InterfaceConnectionEntry<ConfigInterface> = {
* @remarks
* Here are all Interface Servers and Connectors are created and managed.
* Also every request is handled here.
* @public
*/
export default class MultiMessageBroker {
/**
* MMB singleton instance
* @private
*/
private static instance: MultiMessageBroker|null = null;
/**
* Whether the broker is prepared.
* @private
*/
private prepared: boolean = false;
/**
* All registered AASs.
* @private
*/
private aasRegistrations: AASRegistrationPrepared[] = [];
/**
* All registered Interface Connectors.
* @private
*/
private interfaceConnections: InterfaceConnectionEntry<any>[] = [];
/**
* @private
*/
private constructor() {}
/**
* Get the singleton instance of the broker.
* @public
*/
public static getInstance(): MultiMessageBroker {
if (this.instance === null) this.instance = new MultiMessageBroker();
@@ -215,6 +227,7 @@ export default class MultiMessageBroker {
/**
* Callback on a connector event.
* @param response
* @alpha
*/
private onConnectorEvent(response: any) {
for (const aas of this.aasRegistrations) {