Skip to content
Snippets Groups Projects
Commit bc5db255 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

JSdoc added

parent 7a91b72b
No related branches found
No related tags found
1 merge request!295Resolve "alternative to google maps api way of visualizing maps"
...@@ -9,7 +9,7 @@ var logger = require('../../logger'); ...@@ -9,7 +9,7 @@ var logger = require('../../logger');
/** /**
* Class representing alias data. * Class representing alias data.
* *
* @param javaObject * @param {Alias|Object} javaObject
* object de-serialized ajax query to the server side * object de-serialized ajax query to the server side
*/ */
function Alias(javaObject) { function Alias(javaObject) {
...@@ -45,7 +45,7 @@ Alias.prototype.constructor = Alias; ...@@ -45,7 +45,7 @@ Alias.prototype.constructor = Alias;
* Updates alias with full data information. This function should be called when * Updates alias with full data information. This function should be called when
* full information about alias is retrieved from server. * full information about alias is retrieved from server.
* *
* @param javaObject * @param {Alias|Object} javaObject
* object representing data from server side * object representing data from server side
*/ */
Alias.prototype.update = function (javaObject) { Alias.prototype.update = function (javaObject) {
...@@ -123,139 +123,278 @@ Alias.prototype.update = function (javaObject) { ...@@ -123,139 +123,278 @@ Alias.prototype.update = function (javaObject) {
} }
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getCharge = function () { Alias.prototype.getCharge = function () {
return this.charge; return this.charge;
}; };
/**
*
* @param {number} charge
*/
Alias.prototype.setCharge = function (charge) { Alias.prototype.setCharge = function (charge) {
this.charge = charge; this.charge = charge;
}; };
/**
*
* @returns {boolean}
*/
Alias.prototype.getConstant = function () { Alias.prototype.getConstant = function () {
return this._constant; return this._constant;
}; };
/**
*
* @param {boolean} constant
*/
Alias.prototype.setConstant = function (constant) { Alias.prototype.setConstant = function (constant) {
this._constant = constant; this._constant = constant;
}; };
/**
*
* @returns {boolean}
*/
Alias.prototype.getBoundaryCondition = function () { Alias.prototype.getBoundaryCondition = function () {
return this._boundaryCondition; return this._boundaryCondition;
}; };
/**
*
* @param {boolean} boundaryCondition
*/
Alias.prototype.setBoundaryCondition = function (boundaryCondition) { Alias.prototype.setBoundaryCondition = function (boundaryCondition) {
this._boundaryCondition = boundaryCondition; this._boundaryCondition = boundaryCondition;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getInitialAmount = function () { Alias.prototype.getInitialAmount = function () {
return this._initialAmount; return this._initialAmount;
}; };
/**
*
* @param {number} initialAmount
*/
Alias.prototype.setInitialAmount = function (initialAmount) { Alias.prototype.setInitialAmount = function (initialAmount) {
this._initialAmount = initialAmount; this._initialAmount = initialAmount;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getInitialConcentration = function () { Alias.prototype.getInitialConcentration = function () {
return this._initialConcentration; return this._initialConcentration;
}; };
/**
*
* @param {number} initialConcentration
*/
Alias.prototype.setInitialConcentration = function (initialConcentration) { Alias.prototype.setInitialConcentration = function (initialConcentration) {
this._initialConcentration = initialConcentration; this._initialConcentration = initialConcentration;
}; };
/**
*
* @returns {string[]}
*/
Alias.prototype.getFormerSymbols = function () { Alias.prototype.getFormerSymbols = function () {
return this.formerSymbols; return this.formerSymbols;
}; };
/**
*
* @param {string[]} formerSymbols
*/
Alias.prototype.setFormerSymbols = function (formerSymbols) { Alias.prototype.setFormerSymbols = function (formerSymbols) {
this.formerSymbols = formerSymbols; this.formerSymbols = formerSymbols;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getX = function () { Alias.prototype.getX = function () {
return this.x; return this.x;
}; };
/**
*
* @param {number} x
*/
Alias.prototype.setX = function (x) { Alias.prototype.setX = function (x) {
if (x !== undefined) { if (x !== undefined) {
this.x = x; this.x = x;
} }
}; };
/**
*
* @param {number} y
*/
Alias.prototype.setY = function (y) { Alias.prototype.setY = function (y) {
if (y !== undefined) { if (y !== undefined) {
this.y = y; this.y = y;
} }
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getY = function () { Alias.prototype.getY = function () {
return this.y; return this.y;
}; };
/**
*
* @param {number} elementId
*/
Alias.prototype.setElementId = function (elementId) { Alias.prototype.setElementId = function (elementId) {
this._elementId = elementId; this._elementId = elementId;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getElementId = function () { Alias.prototype.getElementId = function () {
return this._elementId; return this._elementId;
}; };
/**
*
* @param {number} width
*/
Alias.prototype.setWidth = function (width) { Alias.prototype.setWidth = function (width) {
if (width !== undefined) { if (width !== undefined) {
this.width = width; this.width = width;
} }
}; };
/**
*
* @param {number} height
*/
Alias.prototype.setHeight = function (height) { Alias.prototype.setHeight = function (height) {
if (height !== undefined) { if (height !== undefined) {
this.height = height; this.height = height;
} }
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getWidth = function () { Alias.prototype.getWidth = function () {
return this.width; return this.width;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getHeight = function () { Alias.prototype.getHeight = function () {
return this.height; return this.height;
}; };
/**
*
* @returns {string}
*/
Alias.prototype.getName = function () { Alias.prototype.getName = function () {
return this.name; return this.name;
}; };
/**
*
* @param {string} name
*/
Alias.prototype.setName = function (name) { Alias.prototype.setName = function (name) {
this.name = name; this.name = name;
}; };
/**
*
* @returns {string}
*/
Alias.prototype.getFullName = function () { Alias.prototype.getFullName = function () {
return this.fullName; return this.fullName;
}; };
/**
*
* @param {string} fullName
*/
Alias.prototype.setFullName = function (fullName) { Alias.prototype.setFullName = function (fullName) {
this.fullName = fullName; this.fullName = fullName;
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getCompartmentId = function () { Alias.prototype.getCompartmentId = function () {
return this._compartmentId; return this._compartmentId;
}; };
/**
*
* @param {number} compartmentId
*/
Alias.prototype.setCompartmentId = function (compartmentId) { Alias.prototype.setCompartmentId = function (compartmentId) {
if (compartmentId !== null) { if (compartmentId !== null) {
this._compartmentId = compartmentId; this._compartmentId = compartmentId;
} }
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getComplexId = function () { Alias.prototype.getComplexId = function () {
return this._complexId; return this._complexId;
}; };
/**
*
* @param {number} complexId
*/
Alias.prototype.setComplexId = function (complexId) { Alias.prototype.setComplexId = function (complexId) {
if (complexId !== null) { if (complexId !== null) {
this._complexId = complexId; this._complexId = complexId;
} }
}; };
/**
*
* @returns {number}
*/
Alias.prototype.getTransparencyLevel = function () { Alias.prototype.getTransparencyLevel = function () {
return this._transparencyLevel; return this._transparencyLevel;
}; };
/**
*
* @param {number} transparencyLevel
*/
Alias.prototype.setTransparencyLevel = function (transparencyLevel) { Alias.prototype.setTransparencyLevel = function (transparencyLevel) {
this._transparencyLevel = transparencyLevel; this._transparencyLevel = transparencyLevel;
}; };
/**
*
* @returns {Point}
*/
Alias.prototype.getCenter = function () { Alias.prototype.getCenter = function () {
return new Point(this.getX() + this.getWidth() / 2, this.getY() + this.getHeight() / 2); return new Point(this.getX() + this.getWidth() / 2, this.getY() + this.getHeight() / 2);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment