-
-
Adds a new AttributeValue. If the given value is
not included in the list, the associated type will
be also added. Otherwise, only the value will be
updated.
-
-
Adds a new Callback.
Name |
Type |
Description |
_callback |
Callback
|
List or Array of AttributeValues. |
-
inherited
protectedaddConstantAttribute(_constantAttribute)
-
Adds a new constantAttributeValue. If the given value is
not included in the list, the associated type will
be also added. Otherwise, only the value will be
updated.
Name |
Type |
Description |
_constantAttribute |
AttributeValue
|
AttributeValue |
-
-
Adds a new Subscriber.
Name |
Type |
Description |
_subscriber |
Subscriber
|
Subscriber |
-
inherited
privatedataValid(_conditions){boolean}
-
Verifies if the attributes match to the specified conditions in case any exists.
Name |
Type |
Description |
_conditions |
string
|
List of Conditions that will be verified. |
-
-
Returns the current time.
-
-
Returns the id of the widget.
-
-
Returns the name of the widget.
-
-
Returns the old Attributes.
-
-
Returns the Subscriber.
-
-
Returns the type of this class, in this case
"Widget".
-
-
Returns the available AttributeTypes.
-
-
Returns the available ConstantAttributeTypes
(attributes that do not change).
-
-
Returns the description of this component.
-
-
Function for initializing. Calls all initFunctions
and will be called by the constructor.
-
protectedinitAttributes()
-
Initializes attributes. For this class: Latitude and
Longitude
-
-
Initializes Callbacks. For this class:
UPDATE (latitude and longitude)
-
protectedinitConstantAttributes()
-
Initializes constantAttributes. For this class: no
constantAttributes available
-
inherited
abstract,protectedintervalRunning(_interval)
-
Runs the context acquisition constantly in an interval.
Can be called by init.
Name |
Type |
Description |
_interval |
integer
|
Interval in ms |
-
inherited
protectedisAttribute(_attribute){boolean}
-
Verifies whether the specified attributes is a
provided Attribute.
-
-
Updates the Attributes by external components.
-
-
Returns the last acquired Attributes.
-
-
Returns the specified Callbacks that can be
subscribed.
-
-
Returns the ConstantAttributes.
-
protectedqueryGenerator()
-
Implements queryGenerator(). Query latitude and
longitude by calling
navigator.geolocation.getCurrentPosition().
-
-
Returns all available AttributeValues, Attributes and
ConstantAtrributes.
-
-
Registers the component to the associated Discoverer.
-
-
Removes the specified Subscriber.
Name |
Type |
Description |
_subscriber |
Subscriber
|
Subscriber |
-
inherited
protectedsendToSubscriber(_callbackName)
-
Sends all Attributes, specified in the given callback,
to components which are subscribed to this Callback.
Name |
Type |
Description |
_callbackName |
string
|
Name of the searched Callback. |
-
inherited
protectedsetAttributes(_attributes)
-
Sets the AttributeValueList and also the associated
AttributeTypes.
Name |
Type |
Description |
_attributes |
AttributeValueList
|
Array
|
List or Array of
AttributeValues |
-
-
Sets Callbacks.
Name |
Type |
Description |
_callbacks |
CallbackList
|
Array
|
List or Array of Callbacks. |
-
inherited
protectedsetConstantAttributes(_constantAttributes)
-
Sets the ConstantAttributeValueList and also the
associated AttributeTypes.
Name |
Type |
Description |
_constantAttributes |
AttributeValueList
|
Array
|
List or Array of
AttributeValues |
-
-
Sets the associated Discoverer and registers to that.
Name |
Type |
Description |
_discoverer |
Discoverer
|
Discoverer |
-
-
Sets the id of the Widget.
Name |
Type |
Description |
_id |
string
|
Id of the Widget. |
-
-
Sets the name of the Widget.
Name |
Type |
Description |
_name |
string
|
Name of the Widget. |
-
inherited
protectedsetSubscriber(_subscriber)
-
Sets SubscriberList.
Name |
Type |
Description |
_subscriber |
SubscriberList
|
Array
|
List or Array of Subscriber. |
-
-
Updates and returns all available AttributeValues,
Attributes and ConstantAtrributes.
Name |
Type |
Description |
_function |
function
|
nullable
For alternative actions, because an asynchronous function can be used. |
-
-
Updates the attributes by calling queryGenerator.
Name |
Type |
Description |
_function |
function
|
nullable
For alternative actions, because an asynchronous function can be used. |