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}. * * * * @handbook [Templates - External System](https://github.com/samchon/framework/wiki/TypeScript-Templates-External_System) * @author Jeongho Nam */ export declare abstract class ExternalSystemArray extends EntityDequeCollection implements IProtocol { /** * Default Constructor. */ constructor(); /** * @hidden */ private _Handle_system_erase; /** * Test whether the role exists. * * @param name Name, identifier of target {@link ExternalSystemRole role}. * * @return Whether the role has or not. */ hasRole(name: string): boolean; /** * Get a role. * * @param name Name, identifier of target {@link ExternalSystemRole role}. * * @return The specified role. */ getRole(name: string): ExternalSystemRole; /** * Send an {@link Invoke} message. * * @param invoke An {@link Invoke} message to send. */ sendData(invoke: Invoke): void; /** * Handle an {@Invoke} message have received. * * @param invoke An {@link Invoke} message have received. */ abstract replyData(invoke: Invoke): void; /** * Tag name of the {@link ExternalSytemArray} in {@link XML}. * * @return *systemArray*. */ TAG(): string; /** * Tag name of {@link ExternalSystem children elements} belonged to the {@link ExternalSytemArray} in {@link XML}. * * @return *system*. */ CHILD_TAG(): string; }