W3C home > Mailing lists > Public > public-autowebplatform@w3.org > February 2014

TripMeters and like types

From: Rees, Kevron <kevron.m.rees@intel.com>
Date: Tue, 18 Feb 2014 11:08:19 -0800
Message-ID: <CAFW5wYYnHe8pgbXRaPAAETtFD-M+87_WNs1YWdvLYPZXZaTsQQ@mail.gmail.com>
To: "public-autowebplatform@w3.org" <public-autowebplatform@w3.org>
Looking at RunningStatus I've run into an interesting problem.  There
can be N number of trip meters.  This could be true for a number of
different types and many of them won't correspond to a zone.  Would
the  following be appropriate?

interface Vehicle
{
...
  readonly attribute VehicleInterface ? tripMeters;


}

vehicle.tripMeters.get().then(function(data) {
  ///data is an array of TripMeterType
  for(var d in data)
  {
     console.log(d.distance);
  }

});
Received on Tuesday, 18 February 2014 19:08:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:52 UTC