"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ForceLeaveBoardNodeService = void 0;
const force_leave_board_node_config_1 = require("./force-leave-board-node-config");
const force_leave_board_node_1 = require("./force-leave-board-node");
class ForceLeaveBoardNodeService {
  constructor() {
    this.programNodeConfig = new force_leave_board_node_config_1.ForceLeaveBoardNodeConfig();
    this.funcMap = new Map();
  }
  loadFromXml(dataModel) {
    const node = new force_leave_board_node_1.ForceLeaveBoardNode(this.programModel);
    node.setDataModel(dataModel);
    return node;
  }
  setProgramModel(programModel) {
    this.programModel = programModel;
  }
  getProgramNodeConfig() {
    return this.programNodeConfig;
  }
  getRpcMap() {
    return this.funcMap;
  }
  createNode() {
    return {
      nodeId: this.programNodeConfig.id,
      node: new force_leave_board_node_1.ForceLeaveBoardNode(this.programModel),
      children: []
    };
  }
  cloneNode(node) {
    return new force_leave_board_node_1.ForceLeaveBoardNode(this.programModel).cloneNode(node);
  }
}
exports.ForceLeaveBoardNodeService = ForceLeaveBoardNodeService;
//# sourceMappingURL=force-leave-board-node-service.js.map