new Discoverer()
Constructor: All known components given in the associated functions will be registered as startup.
Requires
- module:easejs
- module:AttributeTypeList
- module:GeoLocationWidget
Members
-
privateaggregatorsArray
-
List of available Aggregators.
-
privateinterpreterArray
-
List of available Interpreter.
-
privatewidgetsArray
-
List of available Widgets.
Methods
-
privatecontainsAllAttributes(_description, _list){boolean}
-
Helper: Verifies whether a component description contains all searched attributes.
Name Type Description _description
WidgetDescription | InterpreterDescription description of a component _list
Array searched attributes -
privatecontainsAtLeastOneAttribute(_description, _list){boolean}
-
Helper: Verifies whether a component description contains at least on searched attributes.
Name Type Description _description
WidgetDescription | InterpreterDescription description of a component _list
Array searched attributes -
getAggregator(_id){Aggregator}
-
Returns the aggregator for the specified id.
Name Type Description _id
string id of the component that should be returned -
getAggregatorDescriptions(){Array}
-
Returns the description of all registered aggregators.
-
getComponent(_id){Widget|Aggregator|Interpreter}
-
Returns the instance (widget, aggregator or interpreter) for the specified id.
Name Type Description _id
string id of the component that should be returned -
getComponentsByAttributes(_attributeTypeList, _all){Array}
-
Returns all components that have the specified attribute as outAttribute. It can be chosen between the verification of all attributes or at least one attribute.
Name Type Description _attributeTypeList
AttributeTypeList | Array list of searched attributes _all
boolean choise of the verification mode -
getDescriptions(){Array}
-
Returns the description of all registered components (widget, aggregator and interpreter).
-
getInterpreter(_id){Interpreter}
-
Returns the interpreter for the specified id.
Name Type Description _id
string id of the component that should be returned -
getInterpreterDescriptions(){Array}
-
Returns the description of all registered interpreter.
-
getType(){string}
-
Returns the type of this class, in this case "Discoverer".
-
getWidget(_id){Widget}
-
Returns the widget for the specified id.
Name Type Description _id
string id of the component that should be returned -
getWidgetDescriptions(){Array}
-
Returns the description of all registered widgets.
-
privateidentificationHelper(_component)
-
Helper: Identifies the category of an instance. Widgets, aggregators, interpreter are currently supported.
Name Type Description _component
Widget | Aggregator | Interpreter that should be identified -
privateregister()
-
Single call for registration of the different categories of components. Calls: registerWidgets(), registerAggregators(), registerInterpreter()
-
privateregisterAggregators()
-
Registers all specified aggregators.
-
privateregisterInterpreter()
-
Registers all specified interpreters.
-
registerNewComponent(_component)
-
Registers the specified component.
Name Type Description _component
Widget | Aggregator | Interpreter the component that should be registered -
privateregisterWidgets()
-
Registers all specified widgets.
-
privateregistryHelper(_category, _component)
-
Helper: Saves the given component in the category list.
Name Type Description _category
string category of component to register _component
Widget | Aggregator | Interpreter component that should be registered -
unregisterComponent(_id)
-
Deletes a component from the Discoverer.
Name Type Description _id
string id of the component that should be registered