Comments (4)
Whether or not this becomes recursive is an implementation detail. I got
it to work avoiding infinite recursion by, iirc, overriding the getter in
the "driver" attribute and making it not enumerable (which iirc is the
default).
On Wed, Jul 29, 2015, 1:40 PM Shinjiro Urata [email protected]
wrote:
interface Zone {
attribute ZonePosition[] value;
readonly attribute Zone driver;
boolean equals (Zone zone);
boolean contains (Zone zone);
};interface Zone uses Zone itself inside the definition.
To think straight forward, constructor of Zone need to construct another
Zone inside and it is recursive. I suppose this is problematic.
To avoid this recursion, one idea is to use getDriverPosition() method.But another thing I think is, if we need driver position inside Zone
definition or not.
It looks we can get driver position from interface
steeringwheelConfigutation.
So I guess it would be no problem to remove driver position from Zone
definition.interface Zone {
attribute ZonePosition[] value;
boolean equals (Zone zone);
boolean contains (Zone zone);
};—
Reply to this email directly or view it on GitHub
#55.
from automotive.
@tripzero thanks for the comment.
I suppose you mean this.
window.Zone = function(zone) {
this.value = zone ? zone : [];
Object.defineProperty(this, 'driver',
{ enumerable: false, get: function() {
return new Zone(['Front', 'Left']);
} });
};
https://raw.githubusercontent.com/otcshare/automotive-message-broker/master/xwalk/vehicle_api.js
OK. I get it.
We are thinking about C++ layer implementation and maybe there is some workaround.
Then how about this point?
But another thing I think is, if we need driver position inside Zone definition or not.
It looks we can get driver position from interface steeringwheelConfigutation.
So I guess it would be no problem to remove driver position from Zone definition.
From a point of view, driver position is suitable to be handled by Configuration and Ideintification interface and enough by having steeringWheelConfigutation
interface.
Is there a special reason to have it inside Zone interface?
from automotive.
There is a valid point about the redundancy. There should only be one way
to avoid confusion.
On Thu, Jul 30, 2015, 4:32 AM Shinjiro Urata [email protected]
wrote:
@tripzero https://github.com/tripzero thanks for the comment.
I suppose you mean this.window.Zone = function(zone) {
this.value = zone ? zone : [];Object.defineProperty(this, 'driver', { enumerable: false, get: function() { return new Zone(['Front', 'Left']); } });
};
https://raw.githubusercontent.com/otcshare/automotive-message-broker/master/xwalk/vehicle_api.js
OK. I get it.
We are thinking about C++ layer implementation and maybe there is some
workaround.Then how about this point?
But another thing I think is, if we need driver position inside Zone
definition or not.
It looks we can get driver position from interface
steeringwheelConfigutation.
So I guess it would be no problem to remove driver position from Zone
definition.From a point of view, driver position is suitable to be handled by
Configuration and Ideintification interface and enough by having
steeringWheelConfigutation interface.
Is there a special reason to have it inside Zone interface?—
Reply to this email directly or view it on GitHub
#55 (comment).
from automotive.
I understand.
Personally, still I think, driver position can be located in Configuration and Identification interface.
from automotive.
Related Issues (20)
- Inverse range filtering? HOT 3
- VISS 2 wide review tracking
- Refer to RFC 3987 or URL HOT 2
- Candidate Recommendation endorsement
- Change of key name "value" to "param" HOT 3
- Potential support of structs in VSS HOT 3
- documentation: subscription timestamp HOT 4
- Subscription handling on error or JWT auth issues (timed out) HOT 4
- More architectural description HOT 1
- Add in-line privacy and security considerations to VISS transport HOT 2
- VISS core: what is a pseudo-VIN HOT 3
- VISS Core: why is access control non-normative? HOT 3
- VISS Core: "certified" applications? HOT 2
- Rename notification to event HOT 2
- VISS Core&transport - unclear MAY with enumeration HOT 2
- Proposal to add a “consent hook” HOT 3
- error handling for malformed messages HOT 8
- Bandwidth optimization by using token handle HOT 6
- JSON schema is invalid HOT 4
- Normative references HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automotive.