/*
 * SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software.
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C#.NET project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


class AlgoParam {
    
    constructor() {
        this.name = null;
        this.value = 0;
        this.min = 0;
        this.max = 0;
        this.delta = 0;
    }
    
    get count() {
        return (Math.floor((((this.max - this.min)) / this.delta))) + 1;
    }
    
    toString() {
        return (this.name + "=" + this.value + " [" + this.min + " .. " + this.max + "] by " + this.delta);
    }
    
    static _new3788(_arg1, _arg2, _arg3, _arg4) {
        let res = new AlgoParam();
        res.name = _arg1;
        res.min = _arg2;
        res.max = _arg3;
        res.delta = _arg4;
        return res;
    }
}


module.exports = AlgoParam