"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BasketUnloadNodeService = void 0;
const basketunload_node_config_1 = require("./basketunload-node-config");
const basketunload_node_1 = require("./basketunload-node");
class BasketUnloadNodeService {
  constructor() {
    this.programNodeConfig = new basketunload_node_config_1.BasketUnloadNodeConfig();
    this.funcMap = new Map();
  }
  loadFromXml(dataModel) {
    const node = new basketunload_node_1.BasketUnloadNode(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 basketunload_node_1.BasketUnloadNode(this.programModel),
      children: []
    };
  }
  cloneNode(node) {
    return new basketunload_node_1.BasketUnloadNode(this.programModel).cloneNode(node);
  }
}
exports.BasketUnloadNodeService = BasketUnloadNodeService;
//# sourceMappingURL=basketunload-node-service.js.map