123456789101112131415161718192021222324252627 |
- import { ICustomNode } from '../interfaces/custom-nodes/ICustomNode';
- import { INodesGroup } from '../interfaces/INodesGroup';
- import { IOptions } from "../interfaces/IOptions";
- export abstract class NodesGroup implements INodesGroup {
- /**
- * @type {Map<string, Node>}
- */
- protected nodes: Map <string, ICustomNode> = new Map <string, ICustomNode> ();
- /**
- * @type {IOptions}
- */
- protected options: IOptions;
- constructor (options: IOptions) {
- this.options = options;
- }
- /**
- * @returns {Map<string, INode>}
- */
- public getNodes (): Map <string, ICustomNode> {
- return this.nodes;
- }
- }
|