mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 12:48:14 +00:00
[JSDoc] Add annotations
Bulk-add JSDoc annotations, WTD-1482.
This commit is contained in:
@ -37,6 +37,7 @@ define(
|
||||
* @param {object} model the "JSONifiable" state of the object
|
||||
* @param {Object.<string, Capability>|function} capabilities all
|
||||
* capabilities to be exposed by this object
|
||||
* @memberof platform/core
|
||||
* @constructor
|
||||
*/
|
||||
function DomainObject(id, model, capabilities) {
|
||||
@ -45,6 +46,7 @@ define(
|
||||
* Get the unique identifier for this domain object.
|
||||
* @return {string} the domain object's unique identifier
|
||||
* @memberof DomainObject#
|
||||
* @memberof platform/core.DomainObject#
|
||||
*/
|
||||
getId: function () {
|
||||
return id;
|
||||
@ -59,6 +61,7 @@ define(
|
||||
*
|
||||
* @return {object} the domain object's persistent state
|
||||
* @memberof DomainObject#
|
||||
* @memberof platform/core.DomainObject#
|
||||
*/
|
||||
getModel: function () {
|
||||
return model;
|
||||
@ -73,6 +76,7 @@ define(
|
||||
* @return {Capability} the named capability, or undefined
|
||||
* if not present.
|
||||
* @memberof DomainObject#
|
||||
* @memberof platform/core.DomainObject#
|
||||
*/
|
||||
getCapability: function (name) {
|
||||
var capability = capabilities[name];
|
||||
@ -87,6 +91,7 @@ define(
|
||||
* @param {string} name the name of the capability to
|
||||
* check for
|
||||
* @returns {boolean} true if provided
|
||||
* @memberof platform/core.DomainObject#
|
||||
*/
|
||||
hasCapability: function hasCapability(name) {
|
||||
return this.getCapability(name) !== undefined;
|
||||
@ -110,6 +115,7 @@ define(
|
||||
* @param {...*} [arguments] to pass to the invocation
|
||||
* @returns {*}
|
||||
* @memberof DomainObject#
|
||||
* @memberof platform/core.DomainObject#
|
||||
*/
|
||||
useCapability: function (name) {
|
||||
// Get tail of args to pass to invoke
|
||||
@ -125,4 +131,4 @@ define(
|
||||
|
||||
return DomainObject;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -38,6 +38,7 @@ define(
|
||||
* which provides capabilities (dynamic behavior)
|
||||
* for domain objects.
|
||||
* @param $q Angular's $q, for promise consolidation
|
||||
* @memberof platform/core
|
||||
* @constructor
|
||||
*/
|
||||
function DomainObjectProvider(modelService, capabilityService, $q) {
|
||||
@ -97,6 +98,7 @@ define(
|
||||
* are string identifiers for domain objects, and
|
||||
* values are the corresponding domain objects themselves.
|
||||
* @memberof module:core/object/object-provider.ObjectProvider#
|
||||
* @memberof platform/core.DomainObjectProvider#
|
||||
*/
|
||||
getObjects: getObjects
|
||||
};
|
||||
@ -104,4 +106,4 @@ define(
|
||||
|
||||
return DomainObjectProvider;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user