UNPKG

sql-synergy

Version:

Synergy Wave TA

29 lines (28 loc) 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MWGenerator = void 0; const WaveGenerator_1 = require("./WaveGenerator"); class MWGenerator extends WaveGenerator_1.WaveGenerator { constructor(oMSQuote) { super(oMSQuote); this.ch = (this.ascii('A') - 1); } setWaveSequence(oWS) { this.oWS = oWS; let oLI = oWS.oLL.toArray(); let oLastWave = null; for (var i = 0; i < oLI.length; i++) { oLastWave = oLI[i]; } if (oLastWave != null) { this.ch = oLastWave.getName().charAt(0); this.iStartIndex = oLastWave.getEndIndex(); this.setDir(oLastWave.getDirection()); } } getNextName() { return String.fromCharCode(this.ch + 1); } ascii(a) { return a.charCodeAt(0); } } exports.MWGenerator = MWGenerator;