All Downloads are FREE. Search and download functionalities are using the official Maven repository.

joynr.types.ProviderQos.js Maven / Gradle / Ivy

/**
 * This is the generated struct type ProviderQos: DOCS GENERATED FROM INTERFACE DESCRIPTION
 * Generation date: Mon Dec 05 09:32:59 CET 2016
 */
(function(undefined) {
	/**
	 * @name ProviderQos
	 * @constructor
	 *
	 * @classdesc
	 * This is the generated struct type ProviderQos: DOCS GENERATED FROM INTERFACE DESCRIPTION
	 * 
Generation date: Mon Dec 05 09:32:59 CET 2016 *

the provider quality of service settings * * @param {Object} members - an object containing the individual member elements * @param {Array.} members.customParameters - the list of Provider-Specific and InterfaceSpecific * QoS Parameters * @param {Number} members.priority - the priority value of the provider used for discovery * @param {ProviderScope} members.scope - the scope of the provider (e.g. if it is to be used only * with the local cluster controller) * @param {Boolean} members.supportsOnChangeSubscriptions - true, if the provider supports onChangeSubscriptions, * false otherwise * @returns {ProviderQos} a new instance of a ProviderQos */ var ProviderQos = function ProviderQos(members) { if (!(this instanceof ProviderQos)) { // in case someone calls constructor without new keyword (e.g. var c = Constructor({..})) return new ProviderQos(members); } /** * Used for serialization. * @name ProviderQos#_typeName * @type String * @readonly */ Object.defineProperty(this, "_typeName", { configurable : false, writable : false, enumerable : true, value : ProviderQos._typeName }); /** * the list of Provider-Specific and InterfaceSpecific * QoS Parameters * @name ProviderQos#customParameters * @type Array. */ /** * the priority value of the provider used for discovery * @name ProviderQos#priority * @type Number */ /** * the scope of the provider (e.g. if it is to be used only * with the local cluster controller) * @name ProviderQos#scope * @type ProviderScope */ /** * true, if the provider supports onChangeSubscriptions, * false otherwise * @name ProviderQos#supportsOnChangeSubscriptions * @type Boolean */ if (members !== undefined) { this.customParameters = members.customParameters; this.priority = members.priority; this.scope = members.scope; this.supportsOnChangeSubscriptions = members.supportsOnChangeSubscriptions; } }; Object.defineProperty(ProviderQos, "_typeName", { configurable : false, writable : false, enumerable : false, value : "joynr.types.ProviderQos" }); Object.defineProperty(ProviderQos, 'checkMembers', { enumerable: false, configurable: false, writable: false, readable: true, value: function checkMembers(instance, check) { check(instance.customParameters, "Array", "members.customParameters"); check(instance.priority, "Number", "members.priority"); check(instance.scope, ["String", "Object", "ProviderScope"], "members.scope"); check(instance.supportsOnChangeSubscriptions, "Boolean", "members.supportsOnChangeSubscriptions"); } }); /** * @name ProviderQos#MAJOR_VERSION * @constant {Number} * @default 0 * @summary The MAJOR_VERSION of the struct type ProviderQos is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(ProviderQos, 'MAJOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); /** * @name ProviderQos#MINOR_VERSION * @constant {Number} * @default 0 * @summary The MINOR_VERSION of the struct type ProviderQos is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(ProviderQos, 'MINOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); var preparePrototype = function(joynr) { ProviderQos.prototype = new joynr.JoynrObject(); ProviderQos.prototype.constructor = ProviderQos; Object.defineProperty(ProviderQos.prototype, 'equals', { enumerable: false, configurable: false, writable: false, readable: true, value: function equals(other) { var i; if (this === other) { return true; } if (other === undefined || other === null) { return false; } if (other._typeName === undefined || this._typeName !== other._typeName) { return false; } if (this.customParameters === undefined || this.customParameters === null) { if (other.customParameters !== null && other.customParameters !== undefined) { return false; } } else { if (this.customParameters.length !== other.customParameters.length) { return false; } for (i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy