W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2016

Re: [sensors] Discrete vs continuous reporting modes

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Tue, 19 Jan 2016 11:22:53 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-172821951-1453202572-sysbot+gh@w3.org>
For further clarification, `Sensor`, `DiscreteSensor`, and 
`ContinuousSensor` would all be abstract classes:

```webidl
interface Sensor {};
interface DiscreteSensor : Sensor {};
interface ContinuousSensor : Sensor {};
interface AmbientLightSensor : DiscreteSensor {};
```

I'm not expecting anyone at this point to instantiate a 
`DiscreteSensor`, for example.

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/75#issuecomment-172821951 using 
your GitHub account
Received on Tuesday, 19 January 2016 11:22:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:07 UTC