The following constants and functions are available for the ZOO class:
| NAME | DESCRIPTION |
|---|---|
| SERVICE_ACCEPTED | {Integer} used for |
| SERVICE_STARTED | {Integer} used for |
| SERVICE_PAUSED | {Integer} used for |
| SERVICE_SUCCEEDED | {Integer} used for |
| SERVICE_FAILED | {Integer} used for |
| NAME | DESCRIPTION |
|---|---|
| removeItem | Remove an object from an array. |
| indexOf | |
| extend | Copy all properties of a source object to a destination object. |
| rad | |
| distVincenty | Given two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid. |
| Class | Method used to create ZOO classes. |
| UpdateStatus | Method used to update the status of the process |
Constants
Functions
removeItem: function(array,item)
Remove an object from an array. Iterates through the array to find the item, then removes it.
Parameters
Returns
{Array} A reference to the array
indexOf: function(array,obj)
Parameters
Returns
{Integer} The index at, which the first object was found in the array. If not found, returns -1.
extend: function(destination,source)
Copy all properties of a source object to a destination object. Modifies the passed in destination object. Any properties on the source object that are set to undefined will not be (re)set on the destination object.
Parameters
Returns
{Object} The destination object.
rad: function(x)
Parameters
Returns
{Float}
distVincenty: function(p1,p2)
Given two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid.
Parameters:
Class: function()
Method used to create ZOO classes. Includes support for multiple inheritance.
UpdateStatus: function(env,value)
Method used to update the status of the process
Parameters