# Source: bemap-model/bemap-condMaxSpeed.js

    /**
     * BeNomad BeMap JavaScript API - ConadMaxSpeed
     */

    /**
     * @classdesc
     * Base class for conditional max speed.
     * @public
     * @constructor
     * @abstract
     * @param {object} options see below the available values.
     * @param {String} options.Type - NONE: No speed situation.
        - HAZMAT: Hazardous material.
        - TRAILER: Trailer.
        - WEIGHT: Weight.
        - WEATHER: Weather.
        - VEHICULE_TYPE: Vehicle type (transport type).
     * @param {String|Int} options.Value Condition value (see HAZMAT, WEATHER, WEIGHT: in tenths of tons, trailer: in number of trailers, vehicle type: a mask of transportation modes).
     * @param {Int} options.Speed The speed limit in kph.
     */
    bemap.CondMaxSpeed = function(options) {
        var opts = options || {};

        /**
         * @type {String}
         * @protected
         */
        this.Type = opts.Type ? opts.Type : null;

        /**
         * @type {String|Int}
         * @protected
         */
        this.Value = opts.Value ? opts.Value : null;

        /**
         * @type {Int}
         * @protected
         */
        this.Speed = opts.Speed ? opts.Speed : null;
    };

    /**
     * Get the type of conditional max speed.
     * @return {String} Type
     */
    bemap.CondMaxSpeed.prototype.getType = function() {
        return this.Type;
    };

    /**
     * Get the value of condition.
     * @return {String|Int}
     */
    bemap.CondMaxSpeed.prototype.getValue = function() {
        return this.Value;
    };

    /**
     * Get the speed conditional speed limit.
     * @return {Int}
     */
    bemap.CondMaxSpeed.prototype.getSpeed = function() {
        return this.Speed;
    };