import { EntityDequeCollection } from "../../protocol/entity/EntityCollection";
import { ExternalSystemRole } from "./ExternalSystemRole";
import { ExternalSystem } from "./ExternalSystem";
import { IProtocol } from "../../protocol/invoke/IProtocol";
import { Invoke } from "../../protocol/invoke/Invoke";
/**
* An array and manager of {@link ExternalSystem external system drivers}.
*
* The {@link ExternalSystemArray} is an abstract class containing and managing external system drivers,
* {@link ExternalSystem} objects. Within framewokr of network, {@link ExternalSystemArray} represents your system
* and children {@link ExternalSystem} objects represent remote, external systems connected with your system.
* With this {@link ExternalSystemArray}, you can manage multiple external systems as a group.
*
* You can specify this {@link ExternalSystemArray} class to be *a server accepting external clients* or
* *a client connecting to external servers*. Even both of them is also possible.
*
* - {@link ExternalClientArray}: A server accepting {@link ExternalSystem external clients}.
* - {@link ExternalServerArray}: A client connecting to {@link ExternalServer external servers}.
* - {@link ExternalServerClientArray}: Both of them. Accepts {@link ExternalSystem external clients} and connects to
* {@link ExternalServer external servers} at the same time.
*
*
*
*
*
* #### Proxy Pattern
* The {@link ExternalSystemArray} class can use *Proxy Pattern*. In framework within user, which
* {@link ExternalSystem external system} is connected with {@link ExternalSystemArray this system}, it's not
* important. Only interested in user's perspective is *which can be done*.
*
* By using the *logical proxy*, user dont't need to know which {@link ExternalSystemRole role} is belonged
* to which {@link ExternalSystem system}. Just access to a role directly from {@link ExternalSystemArray.getRole}.
* Sends and receives {@link Invoke} message via the {@link ExternalSystemRole role}.
*
*