new Discoverer()
Constructor: All known components given in the associated functions will be registered as startup.
Methods
-
getAggregator(aggregatorId){Aggregator}
-
Returns the aggregator for the specified id.
Name Type Description aggregatorId
string id of the component that should be returned
Returns:
Type Description Aggregator -
getComponent(componentId){Widget|Aggregator|Interpreter}
-
Returns the instance (widget, aggregator or interpreter) for the specified id.
Name Type Description componentId
string id of the component that should be returned
Returns:
Type Description Widget | Aggregator | Interpreter -
getComponents(componentTypes){Array}
-
Returns all registered components (widget, aggregator and interpreter).
Name Type Description componentTypes
Array Component types to get descriptions for. Defaults to Widget, Interpreter and Aggregator.
Returns:
Type Description Array -
getComponentsByAttributes(attributeListOrArray, all, componentTypes){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 attributeListOrArray
AttributeList | Array list of searched attributes
all
Boolean choise of the verification mode
componentTypes
Array Components types to search for
Returns:
Type Description Array -
getInterpreter(interpreterId){Interpreter}
-
Returns the interpreter for the specified id.
Name Type Description interpreterId
string id of the component that should be returned
Returns:
Type Description Interpreter -
getType(){string}
-
Returns the type of this class, in this case "Discoverer".
Returns:
Type Description string -
getWidget(widgetId){Widget}
-
Returns the widget for the specified id.
Name Type Description widgetId
string id of the component that should be returned
Returns:
Type Description Widget -
registerNewComponent(component)
-
Registers the specified component.
Name Type Description component
Widget | Aggregator | Interpreter the component that should be registered
-
unregisterComponent(componentId)
-
Deletes a component from the Discoverer.
Name Type Description componentId
string id of the component that should be registered