Difference between revisions of "Observers"

From AMTech WikiDocs
Jump to: navigation, search
(Handling observers (creation, loading, deleting, unloading))
(Things' observers)
Line 2: Line 2:
 
As seen before, it is possible to navigate among the things with the platform (see [[Tree navigator]]). The things will be organized by type and they can be filtered according to some regular expression on their name and/or description (see [[Quick filter]]).
 
As seen before, it is possible to navigate among the things with the platform (see [[Tree navigator]]). The things will be organized by type and they can be filtered according to some regular expression on their name and/or description (see [[Quick filter]]).
  
We introduced the notion of '''Observer''' to allow to associate things of different types: for instance, to be able to retrieve the ''trucks'' and the ''clients'' of a company at the same time which allows to show them together in the map. As shown below, observers make also possible to filter with criteria on other fields than can be [[#Numerical fields|numerical]], boolean or even spatial location of the things
+
We introduced the notion of '''Observer''' to allow to associate things of different types: for instance, to be able to retrieve the ''trucks'' and the ''clients'' of a company at the same time which allows to show them together in the map. As shown below, observers make also possible to filter with criteria on other fields than can be [[#Numerical fields|numerical]], [[#boolean]] or even [[#spatial location]] of the things
  
=== Handling observers (creation and loading) ===
+
=== Observers creation and loading ===
 
First thing to do is to open the observer's editor:
 
First thing to do is to open the observer's editor:
 
* Navigate to things and then click on the observer button [[File:observerEditorButton.png]] at the bottom of the window.
 
* Navigate to things and then click on the observer button [[File:observerEditorButton.png]] at the bottom of the window.
Line 20: Line 20:
 
::[[File:observerEditorMenu.png]]
 
::[[File:observerEditorMenu.png]]
  
=== Deleting an observer ===
+
=== Deletion and unloading ===
=== Loading an observer ===
+
Click on [[File:observerDeleteBtn.png]] to delete the currently loaded observer
 +
 
 
=== Adding/Removing entity types ===
 
=== Adding/Removing entity types ===
 
=== Allowed criteria ===
 
=== Allowed criteria ===
==== Numerical fields ====
+
==== numerical|Numerical fields ====
 
==== DateTime fields ====
 
==== DateTime fields ====
 
==== String fields ====
 
==== String fields ====

Revision as of 12:19, 7 March 2016

Things' observers

As seen before, it is possible to navigate among the things with the platform (see Tree navigator). The things will be organized by type and they can be filtered according to some regular expression on their name and/or description (see Quick filter).

We introduced the notion of Observer to allow to associate things of different types: for instance, to be able to retrieve the trucks and the clients of a company at the same time which allows to show them together in the map. As shown below, observers make also possible to filter with criteria on other fields than can be numerical, #boolean or even #spatial location of the things

Observers creation and loading

First thing to do is to open the observer's editor:

  • Navigate to things and then click on the observer button ObserverEditorButton.png at the bottom of the window.
The observer editor will appear over the navigator with its own menu bar on top of the page and another menu in the right side.
When there is no observer loaded, the editor menu will look like
EmptyObserverEditor.png
  • Click on NewObserverBtn.png to create a new observer and select its name in the opened dialog:
CreateObserverDlg.png
or just open an existing one by clicking on OpenObserverBtn.png and selecting it in the opened window
SelectObserver.png
  • Finally, the observer editor top menu will appear
ObserverEditorMenu.png

Deletion and unloading

Click on ObserverDeleteBtn.png to delete the currently loaded observer

Adding/Removing entity types

Allowed criteria

numerical|Numerical fields

DateTime fields

String fields

Boolean fields

Location

Aggregation functions

Activity observers

Follower's observers

API's observers

Target things

targetthings "[{\"thingType\":\"/amtech/linkeddata/types/composite/entity/truck\",\"thingsId\":[\"truck888\"], proximityarea}]" It allows to establish relations between an observation and things instances grouped by type including a proximity area. It offers a tool to resolve thing type instances. From client to server: It can be configured to used by observer to returns just target things instances. The proximityarea is used at the observation enrichment to assigned target things instances with a location. From server to client: Allows to send observations to specific instances. Example m2mBridge leverages this functionality to implement centralized management and send observations.