Skip to content

Commit 1e2d777

Browse files
committed
To w3c#6, reformulate observation use cases based on comments and discussion
Signed-off-by: Zoltan Kis <[email protected]>
1 parent 16d6239 commit 1e2d777

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

index.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,20 @@
259259
<li>Get a property value.</li>
260260
<li>Set a property value.</li>
261261
<li>Invoke an action.</li>
262-
<li>Add a listener to an event.</li>
263-
<li>Remove a listener from an event.</li>
262+
<li>
263+
Observe events.
264+
<ul>
265+
<li>Add a listener to an event.</li>
266+
<li>Remove a listener from an event.</li>
267+
</ul>
268+
Default events are the following:
269+
<ul>
270+
<li>A property has changed.</li>
271+
<li>An action has been invoked.</li>
272+
<li>Other Things have added an event listener.</li>
273+
<li><a>Thing Description</a> has changed, i.e. properties, events or actions have been defined, removed, or the definition has changed.</li>
274+
</ul>
275+
</li>
264276
</ul>
265277
</li>
266278
<li>Retrieve a thing that is exposed by the local runtime</li>
@@ -274,14 +286,12 @@
274286
<li>Add a property definition to the <a>Thing</a>.</li>
275287
<li>Add an event definition to the <a>Thing</a>.</li>
276288
<li>Add an action definition to the <a>Thing</a>.</li>
277-
<li>Register an action triggered by external retrieve requests on the <a>Thing Description</a>.</li>
278-
<li>Register an action triggered on a property change.</li>
279289
<li>Attach semantic information to an action</li>
280290
<li>Attach semantic information to a property</li>
281291
<li>Attach semantic information to an event</li>
282-
<li>Handle an external request to retrieve the <a>Thing Description</a>.</li>
283-
<li>Handle an external request to add a listener to an event.</li>
284-
<li>Handle an external request to remove a listener to an event.</li>
292+
<li>Register a handler for external requests to retrieve the <a>Thing Description</a>.</li>
293+
<li>Register a handler for external requests to add a listener to an event.</li>
294+
<li>Handle an external request to remove an event listener.</li>
285295
<li>Handle an external request to run an action: take the parameters from the request, execute the defined action, and return the result.</li>
286296
<li>Emit an event, i.e. notify all listeners subscribed to that event.</li>
287297
</ul>

0 commit comments

Comments
 (0)